warning 225: Help me pls :)
#1

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;
		}
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)