[AJUDA]Sistema de Administraзao simples
#3

Код:
CMD:registrar(playerid, params[])
{
         GetPlayerName(playerid, Nome, 24);
         format(string, sizeof(string),"%s.txt", Nome);

         if(fexist(string)) return cmd_logar(playerid, params[]);

         static Senha;
         if(sscanf(params,"d", Senha[playerid])) return SendClientMessage(playerid, Cor,"[ERRO]: Correto й:/Registrar [Senha]");

         dini_Create(string);

         AdminInfo[playerid][Logado] = true;
         dini_Set(string, "Nome", Nome);
         dini_Set(string, "Senha", Senha);
         dini_Set(string, "Nivel", AdminInfo[playerid][Nivel]);
         SendClientMessage(playerid, Cor,"[INFO]: Registrado com suscesso!");
         return 1;
}
esse e o erro dessa linha
Код:
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(165) : error 029: invalid expression, assumed zero
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(168) : error 028: invalid subscript (not an array or too many subscripts): "Senha"
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(168) : warning 215: expression has no effect
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(168) : error 001: expected token: ";", but found "]"
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(168) : error 029: invalid expression, assumed zero
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(168) : fatal error 107: too many error messages on one line
a linha 43 eu resovi
e a 239 eu nao axo
Reply


Messages In This Thread
[AJUDA]Sistema de Administraзao simples - by MoisesXD - 22.10.2011, 11:29
Re: [AJUDA]Sistema de Administraзao simples - by cotonete - 22.10.2011, 11:58
Respuesta: [AJUDA]Sistema de Administraзao simples - by MoisesXD - 22.10.2011, 12:14
Re: [AJUDA]Sistema de Administraзao simples - by Dolby - 22.10.2011, 13:23
Re: [AJUDA]Sistema de Administraзao simples - by [R] ousenber [K] - 22.10.2011, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)