[ASK]SetPlayerHealth and undefinedsymbol not working
#3

Quote:
Originally Posted by Aliassassin123456
Посмотреть сообщение
pawn Код:
forward HG();
public HG()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInRangeOfPoint(i, 7, Map[ZombieSpawnX], Map[ZombieSpawnY], Map[ZombieSpawnZ]))
            {
                if(GetPlayerTeam(i) == TEAM_ZOMBIE) return 0;
                else
                {
                    new Float:hp[MAX_PLAYERS];
                    GetPlayerHealth(i,hp);
                    SetPlayerHealth(i, hp - 10);
                    GameTextForPlayer(i,"~W~Be careful you are in\n~r~Zombie Spawn Area!! -10hp", 1000, 5);
                }
            }
        }
    }
    return 1;
}
dear sir,
it gave me this..

Quote:

C:\Users\Guest User\Music\zGM[Fahad]\zGM[Fahad]\zGM[Fahad]\gamemodes\zGM.pwn(979) : error 035: argument type mismatch (argument 2)
C:\Users\Guest User\Music\zGM[Fahad]\zGM[Fahad]\zGM[Fahad]\gamemodes\zGM.pwn(980) : error 033: array must be indexed (variable "hp")

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)