SendClientMessage - 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: SendClientMessage (
/showthread.php?tid=600306)
SendClientMessage -
ZToPMaN - 06.02.2016
When I write any thing, with "playerid" says error.
Like, " SendClientMessage(playerid, -1, "This text is red"); "
C:\Users\queen\Desktop\Los Santos Cops And Robbers!\gamemodes\yo.pwn(263) : error 017: undefined symbol "playerid"
Re: SendClientMessage -
Zeus1234 - 06.02.2016
Example:
PHP код:
CMD:test(playerid, parametrs[])
{
SendClientMessage(playerid, COLOR_WHITE "TEST");
return 1;
}
Re: SendClientMessage -
fuckingcruse - 06.02.2016
In the parameters of the include/any public parameter. (Playerid) is important if you use such codes. Example is above.
Re: SendClientMessage -
lucamsx - 06.02.2016
You cannot use "playerid" in callbacks without this parameter, for example you can't use playerid in OnFilterScriptInit.
Re: SendClientMessage -
saffierr - 06.02.2016
playerid has to be in a callback as a parameter.