SA-MP Forums Archive
Pawno Crash - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pawno Crash (/showthread.php?tid=603765)



Pawno Crash - MrCallum - 27.03.2016

Everytime I compile, my pawno crashes due to:

Код:
	if(dialogid == 1) // Login
	{
 		if (!response) return Kick(playerid);

		if(response)
  		{
    		if(udb_hash(inputtext) == PlayerInfo[playerid][Pass])
    		{
      			INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);

				format(string, sizeof(string), "SERVER:{FFFFFF} Welcome back, %s! You last logged in at %d/%d/%d %d:%d:%d.", pname, PlayerInfo[playerid][lvDay], PlayerInfo[playerid][lvMonth], PlayerInfo[playerid][lvYear], PlayerInfo[playerid][lvHour], PlayerInfo[playerid][lvMinute], PlayerInfo[playerid][lvSecond]);
				SendClientMessage(playerid, 0x46E850FF, string);

				Logged[playerid] = true;
				else
				{
					ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "{FFFFFF}You have entered an {C44B4B}incorrect{FFFFFF} password.\nType your password below to login.", "Login", "Quit");
				}
				PlayerInfo[playerid][Gender];
				PlayerInfo[playerid][Age];
				if(!PlayerInfo[playerid][Gender] || !PlayerInfo[playerid][Age])
				{
					ShowDialog(playerid, 3);
				}
			}
		}
	}