Help whit error.
#1

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

Quote:
Originally Posted by Roam
Посмотреть сообщение
pawn Код:
SenClientMessage(playerid, -1, " ");
You forgot the "d" at SendClientMessage.


This will work:

pawn Код:
SendClientMessage(playerid, -1, " ");
Reply
#3

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.
Reply
#4

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"
    }
Reply
#5

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)