11.10.2012, 12:04
Hi guys!
I'm trying to create a godmode script, the godmode may only activate if the player is RCON admin.
But I'm doing something wrong, can someone tell me whats wrong with my code?
Error I'm getting:
Thanks!
I'm trying to create a godmode script, the godmode may only activate if the player is RCON admin.
But I'm doing something wrong, can someone tell me whats wrong with my code?
Код:
CMD:god(playerid, params[]) //Line 88
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,0xFF0000AA,"Mag jij niet!.");
return 1;
}
if(GodMode[playerid] == 0) //god mode not set, lets set it
}
SetPlayerHealth(playerid, INFINITY); //set the health to infinity
GodMode[playerid] = 1; //set godmode to true
SendClientMessage(playerid, 0xFF0000FF, "Godmode aan");
else if(GodMode[playerid] == 1) //god mode set .. lets unset it
}
SetPlayerHealth(playerid, 100.0); //set health to 100%
GodMode[playerid] = 0; //set godmode to false
SendClientMessage(playerid, 0xFF0000FF, "Godmode uit");
return 1; //Line 104
}
Код:
god.pwn(88) : error 010: invalid function or declaration god.pwn(88 -- 99) : error 010: invalid function or declaration god.pwn(88 -- 104) : error 010: invalid function or declaration god.pwn(88 -- 104) : fatal error 107: too many error messages on one line



: error 010: invalid function or declaration