Dio skripte:
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
new hashpass[ 129 ], string[ 180 ];
WP_Hash(hashpass,sizeof(hashpass), inputtext);
if(!strcmp(hashpass, PInfo, false))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoneyEx(playerid, PInfo);
SetPlayerScore(playerid,PInfo);
if(PInfo != -1 && clanInfo[PInfo] == 0)
{
PInfo = -1;
PInfo = 0;
}
}
else
{
format(string, sizeof(string), "Dobrodosao %s "COL_WHITE"na CnR Server.\nUpisite sifru", GetName(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Login", string, "Login", "Exit");
PInfo++;
switch (PInfo)
{
case 1: SCM(playerid, COLOR_ORANGE_RED, "Kriva sifra (1/3)");
case 2: SCM(playerid, COLOR_ORANGE_RED, "Kriva sifra (2/3)");
case 3:
{
SCM(playerid, COLOR_ORANGE_RED, "Upisao si sifru vise puta krivo i izbacensi (3/3)");
SetTimerEx("KickPlayer", 100,false,"i",playerid);
}
}
return 1;
}
return 1;
}
}Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
[16:05:46] Rakija has joined the server (0:127.0.0.1)
[16:06:19] Server crashed while executing CNR.amx
[16:06:19] AMX backtrace:
[16:06:19] #0 000ac58c in public OnDialogResponse () from CNR.amx
[16:06:20] Native backtrace:
[16:06:20] #0 6620abc9 in ?? () from plugins\crashdetect.DLL
[16:06:20] #1 6620c8c7 in ?? () from plugins\crashdetect.DLL
[16:06:20] #2 66211489 in ?? () from plugins\crashdetect.DLL
[16:06:21] #3 66211666 in ?? () from plugins\crashdetect.DLL
[16:06:21] #4 6620a207 in ?? () from plugins\crashdetect.DLL
[16:06:21] #5 6620c87a in ?? () from plugins\crashdetect.DLL
[16:06:21] #6 65ec4629 in ?? () from plugins\streamer.DLL
[16:06:21] #7 0046ec31 in ?? () from samp-server.exe
[16:06:21] #8 00452270 in ?? () from samp-server.exe
[16:06:21] #9 0049eef9 in ?? () from samp-server.exe
[16:06:21] #10 004aa31e in ?? () from samp-server.exeSlika/video ingame problema(obavezno ako je ingame problem): Nije potrebno
