if(!strcmp(string1, string2))
Account[playerid][pPassword] = DOF2_GetString(arquivo, "Password");
Account[playerid][pPassword] == DOF2_GetString(arquivo, "Password");
C:\Users\User\Desktop\San Andreas Multiplayer\gamemode RP\gamemodes\gamemode.pwn(6432) : error 006: must be assigned to an array |
Salve como string, DOF2_SetString.
E para verificaзгo de senha correta use comparador de strings, if(!strcmp(string1, string2)) |
new senhadigitada = strlen(inputtext);
if(!strcmp(senhadigitada, Account[playerid][pPassword]))
if(!strcmp(senhadigitada, Account[playerid][pPassword]))
{
//Escolha dos persongens (Login)
SpawnPlayer(playerid);
}
else
{
ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_PASSWORD, "Senha invбlida", "Vocк errou a senha, digite novamente uma senha:", "Confirmar", "");
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 3) Kick(playerid);
}