Pawn Compiler Stopped Working ?
#1

Код:
#include <a_samp>

new god[MAX_PLAYERS]=0;

public OnPlayerCommandText(playerid, cmdtext[])
{

if(strcmp("/god",cmdtext,true) == 0)
{
    if(god[playerid] == 0)
    {
        god[playerid] = 1;
        return 1;
    }
    else
    {
        god[playerid] = 0;
        return 1;
    }
}

return 0;
}

public OnPlayerUpdate(playerid)
{
    if(god[playerid] == 1)
    {
        SetPlayerHealth(playerid,999999);
        SetPlayerArmor(playerid,999999)
    }
}
Its Make My Pawno Stopped Working
Reply
#2

Код:
new god[MAX_PLAYERS]=0;
??
Код:
new god[MAX_PLAYERS];

public OnPlayerConnect( playerid )
    return god[ playerid ] = 0;
Reply
#3

Wrong:
Код:
 new god[MAX_PLAYERS]=0;
Correct:
Код:
 new god[MAX_PLAYERS];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)