Faltz 0 Posted March 9, 2014 bat_room,160,150,3 script Erundek 109,{ callshop "ShopBG",1; npcshopattach "ShopBG";end;OnBuyItem:for(set @i,0; @i < getarraysize(.bg_item);set @i,@i+1){ if(@bought_nameid == .bg_item[@i]){ mes .n$; mes " "; if(.emb_bv[@i] > 0) mes (.emb_bv[@i]*@bought_quantity)+"x Emblemas de bravura."; if(countitem(7828) >= (.emb_bv[@i]*@bought_quantity)){ getitem .bg_item[@i],@bought_quantity; delitem 7828,(.emb_bv[@i]*@bought_quantity); mes .n$; mes "Troca bem sucedida"; close2; }else{ mes .n$; mes "^FF0000Você não tem emblemas suficientes^000000"; close2; } } }}end;OnInit: set .n$,"[Erundek]"; npcshopdelitem "ShopBG", 503; setarray .bg_item[0], 13036,13411,1425,1632,1634,1543,1924,1978,1574,1824,1183,1380,13305,1279,1739,13108,13172,2538,2539,2540,2435,2436,2437,2376,2377,2378,2379,2380,2381,2382,2720,2721,2722,2723,2724,2725,2733; setarray .emb_bv[0], 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,50,50,50,50,50,50,80,80,80,80,80,80,80,500,500,500,500,500,500,500; for(set .x,0; .x < getarraysize(.bg_item); set .x,.x+1) npcshopadditem "ShopBG", .bg_item[.x],0;end;}- shop ShopBG -1,503:500; map_server error na linha 25 "end;" Alguém poderia me explicar porque está dando este error ? Obrigado // english error line 25 "end;" Could someone explain to me why this is giving error? thank you Quote Share this post Link to post Share on other sites
0 ossi0110 200 Posted March 9, 2014 here you go just remove the { above the end on Line 25 bat_room,160,150,3 script Erundek 109,{ callshop "ShopBG",1; npcshopattach "ShopBG";end;OnBuyItem:for(set @i,0; @i < getarraysize(.bg_item);set @i,@i+1){ if(@bought_nameid == .bg_item[@i]){ mes .n$; mes " "; if(.emb_bv[@i] > 0) mes (.emb_bv[@i]*@bought_quantity)+"x Emblemas de bravura."; if(countitem(7828) >= (.emb_bv[@i]*@bought_quantity)){ getitem .bg_item[@i],@bought_quantity; delitem 7828,(.emb_bv[@i]*@bought_quantity); mes .n$; mes "Troca bem sucedida"; close2; }else{ mes .n$; mes "^FF0000Você não tem emblemas suficientes^000000"; close2; } } }end;OnInit: set .n$,"[Erundek]"; npcshopdelitem "ShopBG", 503; setarray .bg_item[0], 13036,13411,1425,1632,1634,1543,1924,1978,1574,1824,1183,1380,13305,1279,1739,13108,13172,2538,2539,2540,2435,2436,2437,2376,2377,2378,2379,2380,2381,2382,2720,2721,2722,2723,2724,2725,2733; setarray .emb_bv[0], 100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,50,50,50,50,50,50,80,80,80,80,80,80,80,500,500,500,500,500,500,500; for(set .x,0; .x < getarraysize(.bg_item); set .x,.x+1) npcshopadditem "ShopBG", .bg_item[.x],0;end;}- shop ShopBG -1,503:500; 3 Senos, Faltz and JulioCF reacted to this Quote Share this post Link to post Share on other sites
0 Faltz 0 Posted March 9, 2014 woow, O_O stupid "}" rsrs thanks man! Quote Share this post Link to post Share on other sites
map_server
error na linha 25 "end;"
Alguém poderia me explicar porque está dando este error ?
Obrigado
//
english
error line 25 "end;"
Share this post
Link to post
Share on other sites