A tiny error - 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)
+--- Thread: A tiny error (
/showthread.php?tid=407594)
A tiny error -
GNGification - 14.01.2013
Okey so what is wrong with this?
pawn Код:
C:\Users\Eliasuus\Desktop\pawno\pawno\Race.pwn(342) : error 029: invalid expression, assumed zero
C:\Users\Eliasuus\Desktop\pawno\pawno\Race.pwn(342) : warning 215: expression has no effect
C:\Users\Eliasuus\Desktop\pawno\pawno\Race.pwn(343) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Error.
pawn Код:
TogglePlayerControllable(playerid,0);
Racing[playerid] = 1;
if(Racing[playerid]) == 1; return SendClientMessage(playerid, 0xFFFFF, "You are now racing!");
return 1;
The error line (324)
pawn Код:
if(Racing[playerid]) == 1; return SendClientMessage(playerid, 0xFFFFF, "You are now racing!");
Thank you for any help!
Re: A tiny error -
Diorturato - 14.01.2013
Syntax.
pawn Код:
if(Racing[playerid] == 1) return...
Re: A tiny error -
GNGification - 14.01.2013
Thanks! It is working now, Rep for you