warning 225: Help me pls :) - 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: warning 225: Help me pls :) (
/showthread.php?tid=211007)
warning 225: Help me pls :) -
NINER - 14.01.2011
hi wenn i compile..i get this warning...why?
Код:
C:\Users\Joshua\Desktop\sampserver 6\filterscripts\lizenzen.pwn(114) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
....that are the lines...
Код:
}
if(strcmp(cmd, "/fahrlehrer", true) == 0) {
if(GetPlayerSkin(playerid) != 20) return false; // If player skin isn't 167, nothing happens ! | != means 'different'
else return // Else from that first condition, will return functions
SendClientMessage(playerid, COLOR_WHITE,"SERVER:Your are now a Registerd DMV Instructor");
SendClientMessage(playerid, COLOR_WHITE,"Your Commands Are: /givelicense [ID] /takelicense [ID] /renewlicense [ID]");
DMV[playerid] = 1;
TogglePlayerControllable(playerid,1);
SetPlayerColor(playerid, COLOR_WHITE);
return 1;
}
Re: warning 225: Help me pls :) -
BlackWolf120 - 14.01.2011
a return interrupts your loop and prevents the script from being red.
theres sth. wrong with your else return and return false code.
You have to remove it.
Otherwise your code after this part wont be red.