SendClientMessage
#1

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"
Reply
#2

Example:
PHP код:
CMD:test(playeridparametrs[])
{
SendClientMessage(playeridCOLOR_WHITE "TEST");
return 
1;

Reply
#3

In the parameters of the include/any public parameter. (Playerid) is important if you use such codes. Example is above.
Reply
#4

You cannot use "playerid" in callbacks without this parameter, for example you can't use playerid in OnFilterScriptInit.
Reply
#5

playerid has to be in a callback as a parameter.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)