SA-MP Forums Archive
warning 225: unreachable code HELP [REP+] - 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: warning 225: unreachable code HELP [REP+] (/showthread.php?tid=575775)



warning 225: unreachable code HELP [REP+] - LMaxCo - 30.05.2015

Hi guys,
i got problem warning 225: unreachable code in my script

Here's the error code :

Код:
	return NormalTele( playerid, "Death Match", "DM", 2227.5273,2326.6516,7.5469,358.5545,-2233.5776,2401.7615,2.4886,222.6917, 0);
	DeletePVar(playerid,"FLY");
Anyone can help me?

thanks.


Re: warning 225: unreachable code HELP [REP+] - LMaxCo - 30.05.2015

Anyone?


Re: warning 225: unreachable code HELP [REP+] - Gammix - 30.05.2015

You are breaking the whole callback or function and then declaring a function under it which is not meaningful.

Do something like this:
pawn Код:
NormalTele( playerid, "Death Match", "DM", 2227.5273,2326.6516,7.5469,358.5545,-2233.5776,2401.7615,2.4886,222.6917, 0);
return DeletePVar(playerid,"FLY");



Re: warning 225: unreachable code HELP [REP+] - LMaxCo - 30.05.2015

Quote:
Originally Posted by Gammix
Посмотреть сообщение
You are breaking the whole callback or function and then declaring a function under it which is not meaningful.

Do something like this:
pawn Код:
NormalTele( playerid, "Death Match", "DM", 2227.5273,2326.6516,7.5469,358.5545,-2233.5776,2401.7615,2.4886,222.6917, 0);
return DeletePVar(playerid,"FLY");
FIXED !!, Thanks for help me (REP+)