God Mode
#4

I have this:

pawn Code:
if(strcmp(cmd, "/god", true) == 0)
    {
        new pname[MAX_PLAYER_NAME], string[40 + MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));

       if(pGod == 0)
       {
        SetPlayerHealth(playerid, 9999);
        SetPlayerArmour(playerid, 9999);
        format(string, sizeof(string), "[OPERATOR] %s has entered God Mode using /god", pname);
        SendClientMessageToAll(0x3F9E4DAA, string);
        } else {
         SetPlayerArmour(playerid,100);
         SetPlayerHealth(playerid,100);
         format(string, sizeof(string), "[OPERATOR] %s has left God Mode using /god", pname);
        SendClientMessageToAll(0x3F9E4DAA, string);
         }
        return 1;

     }
and get this error:


Quote:

C:\Users\dell\Desktop\Urban FreeRoam\gamemodes\UTDM.pwn(399) : error 033: array must be indexed (variable "pGod")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply


Messages In This Thread
God Mode - by Garc1a - 29.10.2010, 14:40
Re: God Mode - by willsuckformoney - 29.10.2010, 14:43
Re: God Mode - by iggy1 - 29.10.2010, 14:45
Re: God Mode - by Garc1a - 29.10.2010, 14:54
Re: God Mode - by Agovic - 29.10.2010, 15:02
Re: God Mode - by Garc1a - 29.10.2010, 15:03
Re: God Mode - by i514x - 29.10.2010, 15:10
Re: God Mode - by TheHoodRat - 29.10.2010, 15:10
Re: God Mode - by Garc1a - 29.10.2010, 15:15
Re: God Mode - by i514x - 29.10.2010, 15:19

Forum Jump:


Users browsing this thread: 1 Guest(s)