30/10/2021 00:30
Quando um player aperta em logar com a senha correta o servidor crasha
Logs:
Código:
if(dialogid == DIALOG_LOGIN) {
format(pInfo[playerid][pSenha], MAX_PASSWORD, DOF2::GetString(Accounts(playerid), "Senha"));
if(!response) return Kick(playerid);
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "xXx - Login", string2, "Logar", "Cancelar");
if(!strcmp(inputtext) == pInfo[playerid][pSenha])
{
pInfo[playerid][pLogado] = true;
SetPlayerWantedLevel(playerid, DOF2_GetInt(Accounts(playerid), "Estrelas"));
SetPlayerScore(playerid, DOF2_GetInt(Accounts(playerid), "Level"));
SetPlayerSkin(playerid, DOF2_GetInt(Accounts(playerid), "Skin"));
GivePlayerMoney(playerid, DOF2_GetInt(Accounts(playerid), "Grana"));
pInfo[playerid][pAdmin] = DOF2_GetInt(Accounts(playerid), "Admin");
SetCameraBehindPlayer(playerid);
SetSpawnInfo(playerid, 0, DOF2_GetInt(Accounts(playerid), "Skin"), 1154.2373, -1772.6030, 16.5992);
SpawnPlayer(playerid);
}
else
{
pInfo[playerid][pTentativas]++;
SendClientMessage(playerid, ERRO_COR, "[ERRO] Senha Incorreta Tente Novamente!");
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "xXx - Login", string2, "Logar", "Cancelar");
if(pInfo[playerid][pTentativas] >= MAX_ATTEMPS_PASSWORD) return Kick(playerid);
}
}
}
Logs:
Código:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R3, (C)2005-2019 SA-MP Team
[02:07:22] filterscripts = "" (string)
[02:07:22] bind = "" (string)
[02:07:22]
[02:07:22] Server Plugins
[02:07:22] --------------
[02:07:22] Loading plugin: streamer_2.9.4.so
[02:07:22]
*** Streamer Plugin v2.9.4 by Incognito loaded ***
[02:07:22] Loaded.
[02:07:22] Loading plugin: sscanf.so
[02:07:22]
[02:07:22] ===============================
[02:07:22] sscanf plugin loaded.
[02:07:22] Version: 2.8.3
[02:07:22] (c) 2018 Alex "Y_Less" Cole
[02:07:22] ===============================
[02:07:22] Loaded.
[02:07:22] Loaded 2 plugins.
[02:07:22]
[02:07:22] Filterscripts
[02:07:22] ---------------
[02:07:22] Loaded 0 filterscripts.
[02:07:22]
----------------------------------
[02:07:22] Blank Gamemode by your name here
[02:07:22] ----------------------------------
[02:07:22] Number of vehicle models: 0