Simple help me please Godmode
#1

hey guys i am trying a cmd like this:

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


Messages In This Thread
Simple help me please Godmode - by Davz*|*Criss - 02.08.2011, 10:51
Re: Simple help me please Godmode - by Wesley221 - 02.08.2011, 10:54
Re: Simple help me please Godmode - by Davz*|*Criss - 02.08.2011, 10:55
Re: Simple help me please Godmode - by Wesley221 - 02.08.2011, 10:57
Re: Simple help me please Godmode - by Davz*|*Criss - 02.08.2011, 10:58
Re: Simple help me please Godmode - by Wesley221 - 02.08.2011, 10:59
Re: Simple help me please Godmode - by Davz*|*Criss - 02.08.2011, 11:02
Re: Simple help me please Godmode - by iPLEOMAX - 02.08.2011, 11:04
AW: Simple help me please Godmode - by samtey - 02.08.2011, 11:12
Re: Simple help me please Godmode - by iPLEOMAX - 02.08.2011, 11:16

Forum Jump:


Users browsing this thread: 4 Guest(s)