SendClientMessage Bug
#5

pawn Код:
else if (dialogid == D_RADIO_PINPUT1 && response)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
 if(IsPlayerAdmin(playerid))
{
PlayAudioStreamForPlayer(i,inputtext);
break;
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"ERROR:{FF 00EA}You {A90202}NOT A {3FCD02}STAFF!");
break;
}
}
}
Always use break; if you want the loop to end, else it will just go on and go on untill ut reaches his target, this way the loop will end when it finds someting.

Im sorry if the code looks messy, i typed it from my mobile which doesnt works pretty well sometimes.
Im very sure this code will work though.
If it doesnt, then ill help you later when i get on my computer.
Reply


Messages In This Thread
SendClientMessage Bug - by Guest123 - 07.04.2013, 08:56
Re: SendClientMessage Bug - by emokidx - 07.04.2013, 09:01
Re: SendClientMessage Bug - by Guest123 - 07.04.2013, 09:22
Re: SendClientMessage Bug - by Kenrque - 07.04.2013, 09:27
Re: SendClientMessage Bug - by Apenmeeuw - 07.04.2013, 09:35
Re: SendClientMessage Bug - by Shaft - 07.04.2013, 09:36
Re: SendClientMessage Bug - by ReVo_ - 07.04.2013, 09:39
AW: SendClientMessage Bug - by Nero_3D - 07.04.2013, 09:51
Re: SendClientMessage Bug - by Guest123 - 07.04.2013, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)