error 017: undefined symbol "SendCleintMessageToAll" -
xXitsgodzillaXx - 26.04.2012
getting an error that says
Код:
error 017: undefined symbol "SendCleintMessageToAll"
the code :
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/911 police 187", true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Dispatcher: Ok, Please remain calm and stay at your location, assistance will be there shortly.");
SendCleintMessageToAll(playerid, COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace.");
return 1;
}
help plox :3
Respuesta: error 017: undefined symbol "SendCleintMessageToAll" -
Marricio - 26.04.2012
pawn Код:
if(strcmp(cmdtext, "/911 police 187", true) == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Dispatcher: Ok, Please remain calm and stay at your location, assistance will be there shortly.");
SendClientMessageToAll(playerid, COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace.");
return 1;
}
Just a grammar issue. SendClientMessageToAll is the right one.
Re: error 017: undefined symbol "SendCleintMessageToAll" -
RollTi - 26.04.2012
pawn Код:
SendCleintMessageToAll(playerid, COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace.");
to
pawn Код:
SendClientMessageToAll(playerid, COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace.");
Re: error 017: undefined symbol "SendCleintMessageToAll" -
xXitsgodzillaXx - 26.04.2012
Quote:
Originally Posted by Marricio
pawn Код:
if(strcmp(cmdtext, "/911 police 187", true) == 0) { SendClientMessage(playerid, COLOR_WHITE, "Dispatcher: Ok, Please remain calm and stay at your location, assistance will be there shortly."); SendClientMessageToAll(playerid, COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace."); return 1; }
Just a grammar issue. SendClientMessageToAll is the right one.
|
Quote:
Originally Posted by RollTi
pawn Код:
SendCleintMessageToAll(playerid, COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace.");
to
pawn Код:
SendClientMessageToAll(playerid, COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace.");
|
ok, fixed that error derpy me lol, but now im getting this
Код:
C:\Documents and Settings\Administrator\Desktop\gta sa server\gamemodes\DDPDRIFT.pwn(5358) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrator\Desktop\gta sa server\gamemodes\DDPDRIFT.pwn(5794) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
dont worry about the warning thats normal lol
Re: error 017: undefined symbol "SendCleintMessageToAll" -
RollTi - 26.04.2012
Oopppsss remove playerid on SendClientMessageToAll
pawn Код:
SendClientMessageToAll(COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace.");\
you should use format for %s instead of normal SendClientMessageToAll
Respuesta: error 017: undefined symbol "SendCleintMessageToAll" -
Marricio - 26.04.2012
pawn Код:
SendClientMessageToAll(COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace.");
My bad, didn't see it, 'playerid' is a useless parameter in SendClientMessageToAll
Re: Respuesta: error 017: undefined symbol "SendCleintMessageToAll" -
xXitsgodzillaXx - 26.04.2012
Quote:
Originally Posted by RollTi
Oopppsss remove playerid on SendClientMessageToAll
pawn Код:
SendClientMessageToAll(COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace.");\
you should use format for %s instead of normal SendClientMessageToAll
|
Quote:
Originally Posted by Marricio
pawn Код:
SendClientMessageToAll(COLOR_RED, "Police Dispatcher: All units, we have a 187 at %s location, Requesting EMS and Police units for assistnace.");
My bad, didn't see it, 'playerid' is a useless parameter in SendClientMessageToAll
|
aha now it works! thanks both +REP to you both!