[AJUDA]Sistema de Administraзao simples -
MoisesXD - 22.10.2011
alguem me ajuda eu fui la no topico de Sistema de Administraзao simples(
https://sampforum.blast.hk/showthread.php?tid=230868)
fiz tudo certo
mais da esses erros
Код:
C:\Users\Moises\Desktop\Serve 0.3c R2\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(43) : error 001: expected token: ";", but found "forward"
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(189) : error 029: invalid expression, assumed zero
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(192) : error 028: invalid subscript (not an array or too many subscripts): "Senha"
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(192) : warning 215: expression has no effect
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(192) : error 001: expected token: ";", but found "]"
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(192) : error 029: invalid expression, assumed zero
C:\Users\Moises\Desktop\Serve 0.3c R2\gamemodes\a.pwn(192) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
Re: [AJUDA]Sistema de Administraзao simples -
cotonete - 22.10.2011
Mostra as linhas dos erros..
-------------------------------------------
Visita lб:
HostName: [BRASIL] ArenaPower | DeathMatch
Address: 189.1.171.80:7804
Players: 16 / 50
Ping: 29
Mode: Brasil DM/Stunt
Map: San Andreas
Respuesta: [AJUDA]Sistema de Administraзao simples -
MoisesXD - 22.10.2011
Код:
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
Re: [AJUDA]Sistema de Administraзao simples -
Dolby - 22.10.2011
Mude de "static Senha" para "new Senha[MAX_PLAYERS]"
Re: [AJUDA]Sistema de Administraзao simples -
[R] ousenber [K] - 22.10.2011
Troque static Senha por static Senha[MAX_PLAYERS];