SendClientMessage Bug
#7

Код:
else if (dialogid == D_RADIO_PINPUT1 && response)
{
if (!IsPlayerAdmin (playerid)) return SendClientMessage(playerid,COLOR_YELLOW,"ERROR:{FF 00EA}You {A90202}NOT A {3FCD02}STAFF!");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerAdmin (i)) PlayAudioStreamForPlayer(i,inputtext);
}
}
Or edit

Код:
if (IsPlayerAdmin (i)) PlayAudioStreamForPlayer(i,inputtext);
else SendClientMessage(i,COLOR_YELLOW,"ERROR:{FF 00EA}You {A90202}NOT A {3FCD02}STAFF!");
I'm pretty sure you want the first, the function is available only for admins? Use the first. If you really want the second, why who is not admin should see this message?
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)