[ajuda] ajuda
#1

pawn Код:
CMD:admins(playerid, params[])
{
    new IsAdmin;
    SendClientMessage(playerid, Rosa, "Admin Online:");
    new Online[10];
    for(new i = 0; i < MAX_PLAYERS; i++)
 {
        {
                        if(pInfo[i][pAdmin] == 1) AdminNivel = "Moderador";//aqui dis que e o error
            if(pInfo[i][pAdmin] == 2) AdminNivel = "Admin Iniciante";
            if(pInfo[i][pAdmin] == 3) AdminNivel = "Admin Geral";
            if(pInfo[i][pAdmin] == 4) AdminNivel = "Sub Dono";
            if(pInfo[i][pAdmin] == 5) AdminNivel = "Poderoso Chefгo";
            format(String, sizeof(String), "%s | %s | %s | %s", Nome(i), AdminNivel, AdminTrabalhando, Online);
            SendClientMessage(playerid, LARANJA, String);
            IsAdmin ++;
        }
    }
    if(IsAdmin == 0)
    {
        SendClientMessage(playerid, CINZA, "Nenhum Admin Online!");
    }
    IsAdmin = 0;
    SendClientMessage(playerid, CINZA, "Use /helpers");
    return 1;
}
aqui os erros

pawn Код:
D:\GM\gamemodes\GM.pwn(2827) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
D:\GM\gamemodes\GM.pwn(2827) : warning 215: expression has no effect
D:\GM\gamemodes\GM.pwn(2827) : error 001: expected token: ";", but found "]"
D:\GM\gamemodes\GM.pwn(2827) : error 029: invalid expression, assumed zero
D:\GM\gamemodes\GM.pwn(2827) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

linha ?

Qual й a linha 2827 ?
Reply
#3

tu pego esse code do meu FS nй?
https://sampforum.blast.hk/showthread.php?tid=329307

espero que coloque meus crйditos pelo menos...
Reply
#4

Quote:
Originally Posted by Lucas_Alemao
Посмотреть сообщение
tu pego esse code do meu FS nй?
https://sampforum.blast.hk/showthread.php?tid=329307

espero que coloque meus crйditos pelo menos...
sim sim peguei '-' ja que seu fs nao ta salvando admin

e seus credito estao no gm ja
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)