Help whit error. - 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: Help whit error. (
/showthread.php?tid=496374)
Help whit error. -
Roam - 21.02.2014
Help me, check this error
pawn Код:
C:\GTA San Andreas\gamemodes\PartyServer2014.pwn(348) : error 017: undefined symbol "SenClientMessage"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Line:
pawn Код:
SenClientMessage(playerid, -1, " ");
Re: Help whit error. -
Dignity - 21.02.2014
Quote:
Originally Posted by Roam
pawn Код:
SenClientMessage(playerid, -1, " ");
|
You forgot the "d" at Sen
dClientMessage.
This will work:
pawn Код:
SendClientMessage(playerid, -1, " ");
Re: Help whit error. -
Roam - 21.02.2014
Now:
pawn Код:
C:\GTA San Andreas\gamemodes\PartyServer2014.pwn(348) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: Help whit error. -
Dignity - 21.02.2014
Where did you put this command? Look at the function, if it does not have function(playerid), you need to use
pawn Код:
SendClientMessageToAll(color, "text");
If you do want the message to be sent to an individual playerid, use a loop.
pawn Код:
// Loop through all players using:
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(i, -1, "text"); // We defined i to be playerid, so send the message to "i"
}
Re: Help whit error. -
Roam - 21.02.2014
Thanks!