[AJUDA] Sistema /trabalhar para admin
#1

quando tempo copilar ele da esses seguintes erros

Код:
C:\Documents and Settings\Wallace\Desktop\Untitled.pwn(70) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Wallace\Desktop\Untitled.pwn(70) : warning 215: expression has no effect
C:\Documents and Settings\Wallace\Desktop\Untitled.pwn(70) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Wallace\Desktop\Untitled.pwn(70) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Wallace\Desktop\Untitled.pwn(70) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
gostaria que alguem me ajudasse

as linhas sгo essa:
Код:
if(strcmp(cmdtext, "/trabalhar", true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            if(admtrampando[playerid] > 0)
            {
                admtrampando[playerid] = 0;
                GetPlayerName(playerid,sendername,sizeof(sendername));
                SendClientMessageToAll(COLOR_WHITE, "|___________ Aviso da Administraзгo ___________|");
                format(string, 256, "Admin: %s ID(%d) estб Jogando,/admins.",sendername, playerid);
                SendClientMessageToAll(COLOR_DBLUE, string);
                KillTimer(TempoAdministrador);
                SetPlayerSkin(playerid);
                SetPlayerToTeamColor(playerid);
                ResetPlayerWeapons(playerid);
                SetPlayerHealth(playerid,100);

            }
            else
            {
                admtrampando[playerid] = 1;
                GetPlayerName(playerid,sendername,sizeof(sendername));
                SendClientMessageToAll(COLOR_WHITE, "|___________ Aviso da Administraзгo ___________|");
                format(string, 256, "Admin: %s ID(%d) estб Trabalhando,/admins.",sendername, playerid);
                SendClientMessageToAll(COLOR_DBLUE, string);
                SetPlayerSkin(playerid, 217);
                SetPlayerColor (playerid, COLOR_ROSA);
                TempoAdministrador = SetTimerEx("Administrador", 1000, 1, "i", playerid);
            }
        }
        return 1;
	}
Reply
#2

no seu gm nao tem definido o PlayerInfo ou seja no inicio do GM:

pawn Код:
enum PInfo
{
   pAdmin
};
new PlayerInfo[MAX_PLAYERS][pInfo];
dai fais o cmd pra dar admin pro maluko ou cheque se a linha:
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
esta definida como eu postei acima ^^
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)