Help for 1 warning and 1 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: Help for 1 warning and 1 error.. (
/showthread.php?tid=513751)
Help for 1 warning and 1 error.. -
dundolina - 17.05.2014
Here is the error and warning :
mod.pwn(2264) :warning 225: unreachable code
mod.pwn(2340) :error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Error :
if( == true) DestroyPlayerObject(playerid, Ramp), CreatedRamp[playerid] = false; - 2340
CreatedRamp[playerid] = false;
Enabled[playerid]=0;
Pers[playerid]=0;
}
Warning :
Enabled[playerid]=0; - 2264
Pers[playerid]=0;
return 1;
}
Re: Help for 1 warning and 1 error.. -
NoSoap - 17.05.2014
if ( == true) ?
If what = true?
Can't really understand the rest as you haven't provided enough code.
Also use [/code] to incorporate your code.
Re: Help for 1 warning and 1 error.. -
dundolina - 17.05.2014
This is the all of this part of code..
Re: Help for 1 warning and 1 error.. -
iFiras - 17.05.2014
For the error, you have empty thing. Try to fix it 'if(YourVariable == true), just like NoSoap said.
For the warning, the code looks missing and uncompleted. Post all the code.
Re: Help for 1 warning and 1 error.. -
dundolina - 17.05.2014
I fixed them!