08.04.2009, 06:22
Yesterday i made this command if(strcmp(cmd, "/godon", true) == 0) {
SendPlayerFormattedText(playerid,"God:ON to turn off do /godoff",0);
SetPlayerHealth(playerid,1000.0);
return 1;
}
if( strcmp( cmdtext, "/adminskin", true) == 0 )
SetPlayerSkin(playerid, 294);
return 1;
if(strcmp(cmd, "/godoff", true) == 0) {
SendPlayerFormattedText(playerid,"God:OFF to turn off do /godon",0);
SetPlayerHealth(playerid,100.0);
return 1;
}
and made without any errors but today when i compiled it i got
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\lvd m.pwn(15
: warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
EDIT: THE WARNING IS IN GODOFF COMMAND IF I REMOVE IT IT WILL JUST COME WARNING ON /KILL THEN /GODON
SendPlayerFormattedText(playerid,"God:ON to turn off do /godoff",0);
SetPlayerHealth(playerid,1000.0);
return 1;
}
if( strcmp( cmdtext, "/adminskin", true) == 0 )
SetPlayerSkin(playerid, 294);
return 1;
if(strcmp(cmd, "/godoff", true) == 0) {
SendPlayerFormattedText(playerid,"God:OFF to turn off do /godon",0);
SetPlayerHealth(playerid,100.0);
return 1;
}
and made without any errors but today when i compiled it i got
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\lvd m.pwn(15

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
EDIT: THE WARNING IS IN GODOFF COMMAND IF I REMOVE IT IT WILL JUST COME WARNING ON /KILL THEN /GODON