SA-MP Forums Archive
Unreachable code warning! - 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: Unreachable code warning! (/showthread.php?tid=261615)



Unreachable code warning! - Pets - 14.06.2011

I am getting a warning, and because of this warning is my GM fu**ed, if i try to join my homehost server, Mode:Unknown..

About the warning..


C:\Users\Raks\Desktop\samp03csvr_RC7_win32\gamemod es\raksigm.pwn(435) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
__________________________________________________ ___________
SetGameModeText("SS[0.01B - Spontex & K0bistaja]");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}

435 line starts with SetGameModeText.


Need help please..


AW: Unreachable code warning! - Julian12345 - 14.06.2011

Show the lines before

Btw, use the [pawn] tags


Re: Unreachable code warning! - abubaker98 - 14.06.2011

I will try to make the warings gone so be with me first

download another compiler i think yours is old one

if it did not work pm me


Re: Unreachable code warning! - Pets - 14.06.2011

(435)SetGameModeText("SS[0.01B - Spontex & K0bistaja]");
(436)AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
(437)return 1;
(438 )}


Re: Unreachable code warning! - Pets - 14.06.2011

I still get the same warning!


Re: Unreachable code warning! - Mauzen - 14.06.2011

you got a return before that line, remove it.


Re: Unreachable code warning! - Pets - 14.06.2011

pawn Код:
SetGameModeText("SS[0.01B - Spontex & K0bistaja]");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}



AW: Unreachable code warning! - Julian12345 - 14.06.2011

Show the lines BEFORE


Re: Unreachable code warning! - Pets - 14.06.2011

Thank you very much Mauzen! it works now!