[Ajuda] Registro
#1

Eu estou seguindo um tutorial de criar registro em dof2 e no tutorial diz que tem que fazer isso:

pawn Код:
StatusLogin[playerid][Senha] = inputtext);
Eu faзo isso e da erros

aqui o meu codigo.

pawn Код:
new name[MAX_PLAYER_NAME];
new str[256];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), CONTAS, name);
if(dialogid == REGISTRO)
{
if(!response)
{
new jogador[MAX_PLAYER_NAME];
new strz[50];
GetPlayerName(playerid, jogador, MAX_PLAYER_NAME);
format(strz, sizeof(strz), "(INFO) %s saiu do servidor (Saiu)", jogador);
SendClientMessageToAll(tcadm, strz);
Kick(playerid);
return 1;
}
if(strlen(inputtext) < MIN_SENHA || strlen(inputtext) > MAX_SENHA)
{
format(str, sizeof(str), "[ERRO] A senha deve ter entre %d e %d caracteres!", MIN_SENHA, MAX_SENHA);
SendClientMessage(playerid, Vermelho, str);
format(str, sizeof(str), "Senha muito grande ou pequena, %s! \nDigite uma senha para se registrar.", name);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro:", str, "Registrar-se", "Sair");
return 1;
}
StatusLogin[playerid][Senha] = inputtext);
DOF2_CreateFile(str);
DOF2_SetString(str, "Senha", StatusLogin[playerid][Senha]);
GivePlayerMoney(playerid, 10000);
SendClientMessage(playerid, Verde, "[CONTA] Registrado com sucesso.");
GameTextForPlayer(playerid, "~r~registrado com sucesso", 8000, 1);
DOF2_SaveFile();
SpawnPlayer(playerid);
StatusLogin[playerid][Logou] = 1;
}
return 1;
}
Erro:

pawn Код:
C:\Users\Erickson\Documents\EMPRESA COMERCIAL BRV @GTSBR.NET\SA-MP @BRV.NET\Brasil Style Life - RPG\gamemodes\bslgm.pwn(468) : error 006: must be assigned to an array
C:\Users\Erickson\Documents\EMPRESA COMERCIAL BRV @GTSBR.NET\SA-MP @BRV.NET\Brasil Style Life - RPG\gamemodes\bslgm.pwn(468) : error 029: invalid expression, assumed zero
C:\Users\Erickson\Documents\EMPRESA COMERCIAL BRV @GTSBR.NET\SA-MP @BRV.NET\Brasil Style Life - RPG\gamemodes\bslgm.pwn(468) : warning 215: expression has no effect
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Linha 468:

pawn Код:
StatusLogin[playerid][Senha] = inputtext);
Reply


Messages In This Thread
Registro - by ZaturN - 27.04.2014, 22:17
Re: Registro - by AndreOliveira - 27.04.2014, 22:24
Re: Registro - by ZaturN - 27.04.2014, 22:37
Re: Registro - by PT - 27.04.2014, 23:44
Re: Registro - by AndreOliveira - 27.04.2014, 23:54
Re: Registro - by ZaturN - 28.04.2014, 01:14
Re: Registro - by Schocc - 28.04.2014, 03:10
Re: Registro - by ZaturN - 28.04.2014, 09:37
Re: Registro - by ZaturN - 29.04.2014, 02:45
Re: Registro - by PlantBR - 29.04.2014, 06:16

Forum Jump:


Users browsing this thread: 3 Guest(s)