Server Crash
#1

Код:
--------------------------

SA-MP Server: 0.3a R5



Exception At Address: 0x0045D416



Registers:

EAX: 0x0012F518	EBX: 0x042B0EE0	ECX: 0x0012F529	EDX: 0x00460000

ESI: 0x00000000	EDI: 0x00460000	EBP: 0x042DCFC4	ESP: 0x0012F50C

EFLAGS: 0x00010297



Stack:

+0000: 0x015EB5F8  0x046C37E8  0x00000000  0x00000000

+0010: 0x00000800  0x00000000  0x0012F529  0x00000801

+0020: 0x00000000  0x0012F535  0x00000101  0x0100007F

+0030: 0x0100EA65  0x00000000  0x00000000  0xFFFFFFFF

+0040: 0xFFFFFFFF  0x00000000  0x00378798  0x0048DA48

+0050: 0x00000003  0x0044850E  0x0012F5F0  0x00000400

+0060: 0x00000100  0x0012F59C  0x76EB0313  0x002329D0

+0070: 0x0012F5F0  0x00000000  0x0012F5F0  0x00000001

+0080: 0x7FFD182E  0x00000074  0x00000100  0x00000001

+0090: 0x0012F5CC  0x76EB0178  0x002329D0  0x00000000

+00A0: 0x0012F5F0  0x00000001  0x00000000  0x00000001

+00B0: 0x00000000  0x00000010  0x00000074  0x004588EB

+00C0: 0x00000072  0x00000072  0x02676C55  0x00000003

+00D0: 0x02676D0C  0x02682B01  0x004550E0  0x0012F620

+00E0: 0x02676D0C  0x0012F620  0x02676C55  0x0012F640

+00F0: 0x026752F8  0x004551EE  0x0012F620  0x0000000A

+0100: 0x0012F620  0x0046D99E  0x0012F620  0x00000000

+0110: 0x00000000  0x69797542  0x6143676E  0x00460072

+0120: 0x0012F818  0x00486A0B  0xFFFFFFFF  0x0046BFF2

+0130: 0x00460000  0x015EB5F8  0x004010B6  0x015EB5F8
Can anyone decipher why this may be happening?
Reply
#2

You are using R5 version.
Try R7, this problem was fixed there - http://forum.sa-mp.com/index.php?topic=161491.0
Reply
#3

Код:
--------------------------

SA-MP Server: 0.3a R7



Exception At Address: 0x004798E6



Registers:

EAX: 0x0012F518	EBX: 0x04110EE0	ECX: 0x0012F529	EDX: 0x00460000

ESI: 0x00000000	EDI: 0x00460000	EBP: 0x0413CFC4	ESP: 0x0012F50C

EFLAGS: 0x00010297



Stack:

+0000: 0x01B0B5F8  0x04523B2C  0x00000000  0x00000000

+0010: 0x00000800  0x00000000  0x0012F529  0x00000801

+0020: 0x00000000  0x0012F535  0x003D0101  0x0034C1D0

+0030: 0x00000000  0x0034C1D0  0x04110EE0  0x0414BE70

+0040: 0x00000000  0x04110020  0x0003AF90  0x0046143C

+0050: 0x01B0B5F8  0x0012F5A8  0x00000006  0x01B0B5F8

+0060: 0x00000000  0x01B0B5F8  0x00000093  0x01B0B5F8

+0070: 0x0012F608  0x00000400  0x0012F610  0x00000400

+0080: 0x00000100  0x0012F5BC  0x77230313  0x001E29C0

+0090: 0x0012F610  0x00000000  0x0012F610  0x00000001

+00A0: 0x7FFD182E  0x00000074  0x00000100  0x04525588

+00B0: 0x0012F5EC  0x77230178  0x001E29C0  0x00000000

+00C0: 0x0012F610  0x00000001  0x00000000  0x00000001

+00D0: 0x00000000  0x00000010  0x00471BB1  0x0012F620

+00E0: 0x0012F620  0x028B0478  0x0012F640  0x028A52F8

+00F0: 0x028BC324  0x00471D1E  0x0012F620  0x0000000A

+0100: 0x0012F620  0x004670BE  0x0012F620  0x00000000

+0110: 0x00000000  0x49595542  0x4143474E  0x00460052

+0120: 0x0012F818  0x0049331B  0xFFFFFFFF  0x00465712

+0130: 0x00460000  0x01B0B5F8  0x00401096  0x01B0B5F8
Seems to be related to dialogs, if I use a menu to do exactly the same thing it doesn't crash.
Reply
#4

Show that part of your code, that you think crashes the server, please.
You can do it via PM, if you are afraid someone will steal it.
Reply
#5

Код:
if(dialogid == 146)//ADMIN MENU
	{
	  if(response == 1)
	  {
	    if(listitem == 0)
	    {
	      securekick(playerid);
	    }
	    if(listitem == 1)
	    {
	      unsecure(playerid);
	    }
		}
		else
		{
      ShowPlayerDialog(playerid,148,DIALOG_STYLE_LIST,"Vehicle Menu","Sell Car\nSet Buyable\nAdmin Secure","Ok","Back");
		}
	}
	if(dialogid == 147)//ADMIN MENU
	{
	  if(response == 1)
	  {
	    if(listitem == 0)
	    {
	      setbuy(playerid);
	    }
	    if(listitem == 1)
	    {
	      setunbuy(playerid);
	    }
		}
		else
		{
      ShowPlayerDialog(playerid,148,DIALOG_STYLE_LIST,"Vehicle Menu","Sell Car\nSet Buyable\nAdmin Secure","Ok","Back");
		}
	}
	if(dialogid == 148)//ADMIN MENU
	{
	  if(response == 1)
	  {
   		if(listitem == 0)
   		{
   		  asellcar(playerid);
   		}
   		if(listitem == 1)
   		{
   		  ShowPlayerDialog(playerid,147,DIALOG_STYLE_LIST,"Vehicle Menu","Set Buyable\nSet Non-Buyable","Ok","Back");
   		}
   		if(listitem == 2)
   		{
   		  ShowPlayerDialog(playerid,146,DIALOG_STYLE_LIST,"Vehicle Menu","Secure\nUnsecure","Ok","Back");
   		}
	  }
	  else if(PlayerInfo[playerid][admin] > 0)
	  {
	  		ShowPlayerDialog(playerid,149,DIALOG_STYLE_LIST,"Vehicle Menu","Player Menu\nAdmin Menu","Ok","Back");
		}
	}
	if(dialogid == 149)// ADMIN MENU
	{
	  if(response == 1)
	  {
	    if(listitem == 0)
	    {
	      ShowPlayerDialog(playerid,150,DIALOG_STYLE_LIST,"Vehicle Menu","Refuel\nDashboard Display\nBuy Or Sell\nPark","Ok","Back");
			}
			else if(listitem == 1)
			{
			  ShowPlayerDialog(playerid,148,DIALOG_STYLE_LIST,"Vehicle Menu","Sell Car\nSet Buyable\nAdmin Secure","Ok","Back");
			}
		}
	}
	if(dialogid == 150)// PLAYER MENU
	{
	  if(response == 1)
	  {
	    if(listitem == 0)
	    {
				refuel(playerid);
			}
			if(listitem == 1)
			{
			  ShowPlayerDialog(playerid,151,DIALOG_STYLE_LIST,"Vehicle Menu","Dashboard On\nDashboard Off","Ok","Back");
			}
			if(listitem == 2)
			{
			  ShowPlayerDialog(playerid,152,DIALOG_STYLE_LIST,"Vehicle Menu","Buy this car\nSell this car","Ok","Back");
			}
			if(listitem == 3)
			{
			  park(playerid);
			}
	  }
	  else if(PlayerInfo[playerid][admin] > 0)
	  {
	    ShowPlayerDialog(playerid,149,DIALOG_STYLE_LIST,"Vehicle Menu","Player Menu\nAdmin Menu","Ok","Back");
		}
	}
	if(dialogid == 151)// PLAYER MENU
	{
	  if(response == 1)
	  {
	    if(listitem == 0)
	    {
	      dashboardon(playerid);
	    }
	    if(listitem == 1)
	    {
	      dashboardoff(playerid);
	    }
	  }
	  else
	  {
	    ShowPlayerDialog(playerid,150,DIALOG_STYLE_LIST,"Vehicle Menu","Refuel\nDashboard Display\nBuy Or Sell\nPark","Ok","Back");
		}
	}
	if(dialogid == 152)// PLAYER MENU
	{
	  if(response == 1)
	  {
	    if(listitem == 0)
	    {
	      buycar(playerid);
	    }
	    if(listitem == 1)
	    {
	      sellcar(playerid);
	    }
	  }
	  else
	  {
	    ShowPlayerDialog(playerid,150,DIALOG_STYLE_LIST,"Vehicle Menu","Refuel\nDashboard Display\nBuy Or Sell\nPark","Ok","Back");
		}
	}
It's already been released, I'm trying to modify the Vehicle Menu on Taxi's Freeroam to dialog. All the functions are exactly the same as the previously existing menu just under the dialog format.
Reply
#6

I think it's a script problem, though I don't see anything wrong in your script.
The best way to find the place, where it crashes, is to paste a lot of prints throughout this piece of code. (You should have made it, actually, before making a new topic here)
When you will find it, post it here
Reply
#7

That's the reason I posted here. It seems to be a delayed response because the server executes the functions in that dialog just fine, but when it's over I'll crash usually about 3 seconds later. Remember that the only thing I changed is menu to dialog. I suppose it could be a script error but it's going to be a very difficult one to pinpoint, so, I was wondering if these crash messages actually meant anything and if maybe it would help me out to know what they meant.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)