PAWNO (225) 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PAWNO (225) Error (
/showthread.php?tid=82290)
PAWNO (225) Error -
Shinzei_Banzai - 17.06.2009
Hey. I don't know if this is the correct forum to ask about this in, but here we go..
I have these /enter and /exit commands for my server. But when I compile PAWNO I get a single error and I simply can't find the problem:
Script
Код:
}
if (!strcmp("/Enter", cmdtext, true) && PlayerToPoint(1.5 ,playerid,-2070.6096,2179.8987,6.0000))
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,246.40,110.84,1003.22);
CreatePickup(1239,2,-2070.6096,2179.8987,6.0000);
return 1;
}
if(!strcmp("/Exit", cmdtext, true) && PlayerToPoint(1.5 ,playerid,246.40,110.84,1003.22))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-2070.6096,2179.8987,6.0000);
}
return 0;
}
Error
Код:
C:\Users\Bastian\Documents\Samp_server\gamemodes\Test.pwn(335) : warning 225: unreachable code
Line 335
Код:
if (!strcmp("/Enter", cmdtext, true) && PlayerToPoint(1.5 ,playerid,-2070.6096,2179.8987,6.0000))
Re: PAWNO (225) Error -
Weirdosport - 17.06.2009
Look at the lines above it (about 10 lines). I can almost guarantee you'll find a return statement at a higher "nested" level. Either enclose it in the applicable statement, get rid of it, or post your code here and we'll use our discretion