[Ajuda] | ERRO | poha do admin nгo salva :(
#1

eu di inicio em um gm do 0, fiz registro e tava fasendo um sistema de admin + nгo salva alguem ae sabe por que?

pawn Code:
new EAdmin[MAX_PLAYERS]; // Dando inicio ao sistema de admin
pawn Code:
public OnPlayerDisconnect(playerid, reason)
{

    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), P_CONTAS, aname);
    dini_IntSet(file, "AdminLevel", EAdmin[playerid]);
    return 1;
}
pawn Code:
public OnPlayerSpawn(playerid)
{
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), P_CONTAS, aname);
   
    dini_IntSet(file, "AdminLevel", EAdmin[playerid]);
    return 1;
}
aqui fiz uns comando pra testar pra ve se realmente salva
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{

if (strcmp("/JetPack", cmdtext, true, 10) == 0)
{
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), P_CONTAS, aname);
   
    if(EAdmin[playerid] < 1) return SendClientMessage(playerid, Vermelho,"| ERRO | Vocк nгo tem permissгo.");
    {
    SetPlayerSpecialAction(playerid, 2);
    return 1;
    }
}
   
    if (strcmp("/admin", cmdtext, true, 10) == 0)
    {
    new aname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
    format(file, sizeof(file), P_CONTAS, aname);
    EAdmin[playerid] = 5;
    return 1;
    }
   
    return 0;
}
mais quando Reloga nгo fica com o admin alguem ajuda ae VLW
Reply


Messages In This Thread
| ERRO | poha do admin nгo salva :( - by Standby - 05.09.2013, 02:09
Re: | ERRO | poha do admin nгo salva :( - by darkxdll - 05.09.2013, 02:29
Re: | ERRO | poha do admin nгo salva :( - by Standby - 05.09.2013, 03:42
Re: | ERRO | poha do admin nгo salva :( - by JeeanK2 - 05.09.2013, 03:51
Re: | ERRO | poha do admin nгo salva :( - by Standby - 05.09.2013, 20:34
Re: | ERRO | poha do admin nгo salva :( - by darkxdll - 05.09.2013, 20:40
Re: | ERRO | poha do admin nгo salva :( - by Standby - 05.09.2013, 20:48
Re: | ERRO | poha do admin nгo salva :( - by darkxdll - 05.09.2013, 20:51
Re: | ERRO | poha do admin nгo salva :( - by Standby - 05.09.2013, 20:56

Forum Jump:


Users browsing this thread: 2 Guest(s)