11.03.2018, 14:28
Hi, So here is the problem in my CnR gamemode. When i register everything is fine password is well saved bla bla. But the problem is when i type the password to login in, server crash.
Logs:
Logs:
Код:
[23:09:27] [debug] Server crashed while executing HunudCAR.amx [23:09:27] [debug] AMX backtrace: [23:09:27] [debug] #0 000b6408 in public OnDialogResponse () from HunudCAR.amx [23:09:29] [debug] Native backtrace: [23:09:29] [debug] #0 67f416f9 in ?? () from plugins\crashdetect.DLL [23:09:29] [debug] #1 67f46367 in ?? () from plugins\crashdetect.DLL [23:09:29] [debug] #2 67f47c09 in ?? () from plugins\crashdetect.DLL [23:09:29] [debug] #3 67f47de6 in ?? () from plugins\crashdetect.DLL [23:09:29] [debug] #4 67f409c7 in ?? () from plugins\crashdetect.DLL [23:09:29] [debug] #5 67f4631a in ?? () from plugins\crashdetect.DLL [23:09:29] [debug] #6 67b44629 in ?? () from plugins\streamer.DLL [23:09:29] [debug] #7 0046ec31 in ?? () from samp-server.exe [23:09:29] [debug] #8 00452270 in ?? () from samp-server.exe [23:09:29] [debug] #9 0049eef9 in ?? () from samp-server.exe [23:09:29] [debug] #10 004aa31e in ?? () from samp-server.exe
Код:
case D_LOGIN:
{
if (!response)
{
Kick (playerid);
}
if( response )
{
new hashpass[ 129 ];
WP_Hash(hashpass,sizeof(hashpass), inputtext);
if(!strcmp(hashpass, eInfo[playerid][Pass], false))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Login Account","Welcome to Hunud Cops And Robbers\nPlease, enter your password to login.","Login","Quit");
eInfo[playerid][ftl]++;
switch (eInfo[playerid][ftl])
{
case 1: SCM(playerid, -1, "incorrect password! (1/3)");
case 2: SCM(playerid, -1, "incorrect password! (2/3)");
case 3:
{
SCM(playerid, -1, "Kicked!");
SetTimerEx("KickPlayer",100,false,"i",playerid);
}
}
return 1;
}
}
return 1;
}


