SA-MP Forums Archive
SendClientMessageToAll errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SendClientMessageToAll errors (/showthread.php?tid=643292)



SendClientMessageToAll errors - Gogorakis - 16.10.2017

I know it's simple but I'm just learning.

Код:
SendClientMessageToAll(COLOR_DUTY, "[ANN]: %s is now on administrator duty!",GetAdminName(playerid));
Why do I get this error on this line?
Код:
C:\Users\gregorikouk\Desktop\x\gamemodes\x.pwn(11483) : warning 202: number of arguments does not match definition



Re: SendClientMessageToAll errors - Lokii - 16.10.2017

Quote:
Originally Posted by Gogorakis
Посмотреть сообщение
I know it's simple but I'm just learning.

Код:
SendClientMessageToAll(COLOR_DUTY, "[ANN]: %s is now on administrator duty!",GetAdminName(playerid));
Why do I get this error on this line?
Код:
C:\Users\gregorikouk\Desktop\x\gamemodes\x.pwn(11483) : warning 202: number of arguments does not match definition
PHP код:
new str[80];
format(strsizeof(str), "[ANN]: %s is now on administrator duty!",GetAdminName(playerid));
SendClientMessageToAll(COLOR_DUTYstr); 



Re: SendClientMessageToAll errors - Gogorakis - 16.10.2017

Quote:
Originally Posted by Lokii
Посмотреть сообщение
PHP код:
new str[80];
format(strsizeof(str), "[ANN]: %s is now on administrator duty!",GetAdminName(playerid));
SendClientMessageToAll(COLOR_DUTYstr); 
Thank you. Really appreciate it.