error 017: undefined symbol "SendCleintMessageToAll"
#1

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

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

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

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

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
Reply
#6

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

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)