Racescript errors - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Racescript errors (
/showthread.php?tid=150860)
Racescript errors -
Bomber - 28.05.2010
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");
Re: Racescript errors -
DJDhan - 28.05.2010
And
Код:
SendClientMessageToAll(COLOR_RED,"Race Starts");
Re: Racescript errors -
Hiddos - 28.05.2010
or if you meant to set the variable 'racestart' to 1: