02.08.2011, 10:51
hey guys i am trying a cmd like this:
and it gives me these errors
C:\Users\Axme\Desktop\Freeroam server\gamemodes\Tw.pwn(423) : warning 209: function "cmd_god" should return a value
C:\Users\Axme\Desktop\Freeroam server\gamemodes\Tw.pwn(424) : error 010: invalid function or declaration
C:\Users\Axme\Desktop\Freeroam server\gamemodes\Tw.pwn(42 : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
COMMAND:god(playerid, params[])
{
if(Adminstrator[playerid] == 0) return SendClientMessage(playerid, 0xFF0000FF, "You're not an Adminstrator!");
SetPlayerHealth(playerid, INFINITY);
SendClientMessage(playerid, 0x00FF00FF, "Godmode ON");
}
else
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, 0xFF0000FF, "Godmode OFF");
return 1;
}
C:\Users\Axme\Desktop\Freeroam server\gamemodes\Tw.pwn(423) : warning 209: function "cmd_god" should return a value
C:\Users\Axme\Desktop\Freeroam server\gamemodes\Tw.pwn(424) : error 010: invalid function or declaration
C:\Users\Axme\Desktop\Freeroam server\gamemodes\Tw.pwn(42 : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.