Racescript errors
#1

pawn Код:
if(strcmp(cmdtext, "/readyall", true) == 0)
{
if(IsPlayerAdmin(playerid))
{
RaceStart == 1)
SendClientMessageToAll(playerid, COLOR_RED, "Race Starts");
}
else
SendClientMessage(playerid,0xFF0000AA,"You can't use this command!");
return 1;
}
And im getting these errors:
Код:
C:\------\Race.pwn(177) : warning 215: expression has no effect
C:\------\Race.pwn(177) : error 001: expected token: ";", but found ")"
C:\------\Race.pwn(177) : error 029: invalid expression, assumed zero
C:\------\Race.pwn(178) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Код:
Line 177: RaceStart == 1)
Line 178: SendClientMessageToAll(playerid, COLOR_RED, "Race Starts");
Reply
#2

Код:
if(RaceStart==1){
And
Код:
SendClientMessageToAll(COLOR_RED,"Race Starts");
Reply
#3

or if you meant to set the variable 'racestart' to 1:

pawn Код:
RaceStart = 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)