Hi guys, first sorry for my bad english i'll try explain with most clean way i can. Well i'm having trouble with players attach what i need is give some item to all players in the map.
Here what i get after some search:
set(.player,getcharid(3));
deletearray(.players[0],128); addrid(0);
set(.players[getarraysize(.players)],getcharid(3));
detachrid; attachrid(.player);
if (.player == $mapabombporing$ ) {
announce "Parabéns"+ strcharinfo(0) +", Você ganhou o evento!!! :D",3, 0x_FFFF00;
sleep2 2000;
getitem(512,1,set(.@a,.players[rand(getarraysize(.players))]));
announce "Já recebeu seu prêmio agora TCHAU! :P",3;
sleep2 3000;
warp "prontera",150,150;
goto OnInit;
}
Here is my error:
OnInit i have:
set $mapabombporing$, "prontera";
_________________________________________________________________________________ This npc is my new game center and live in prontera thats why i use, this part of script will give some prize to all winners of Bomb poring event.
if i need give more information please ask thx guys!