Crashing Problem!
#1

Hi all,
When I type things, and change the language few times, i get crashes, its horrible, any idea how to fix this?
here is on player text-
Its located on a filterscript, not on my gamemode.
Code:
public OnPlayerText(playerid, text[])
{


if(PlayerInfo[playerid][LoggedIn] !=1) return SendClientMessage(playerid,COLOR_RED,"אתה חייב להתחבר בשביל לרשום");


 new file[128],pName[24],s[128];
	GetPlayerName(playerid,pName,24);
	format(file,128,"Tags/%s.ini",pName);
	if(!dini_Isset(file,"Tag"))
	{
		if(fexist(file))
		{
			format(s,128," %s [ID:%d]",text,playerid);
			SendPlayerMessageToAll(playerid, s);
		}
		return 0;
	}
	else if(dini_Isset(file,"Tag"))
	{
		if(fexist(file))
		{
			format(s,128," %s [ID:%d| %s]",text,playerid,dini_Get(file,"Tag"));
			SendPlayerMessageToAll(playerid, s);
			return 1;
 }

 	}
	return 0;
}
Here is onplayerconnect on the same filterscript-
Code:
	new file[128],pName[24],s[128];
	GetPlayerName(playerid,pName,24);
	format(file,128,"Tags/%s.ini",pName);

	if(!fexist(file))
	{
	  dini_Create(file);
	  dini_Set(file,"Tag","");
	}
	new ServerName[26];
	GetServerVarAsString("hostname",ServerName,26);
	

	if(!dini_Exists(GetPlayerFile(playerid)))
	{
	  format(String,256," - /Register - בכדי להירשם אנא הקש ,\"%s\" ברוך הבא",GetName(playerid));
	  SendClientMessage(playerid,COLOR_BRIGHTRED,String);
	  return 1;
	}
	else if(dini_Exists(GetPlayerFile(playerid)) && !PlayerInfo[playerid][LoggedIn])
	{

	  format(String,256," - בכדי להתחבר לחשבונך אנא הקש סיסמה,\"%s\" ברוך הבא",GetName(playerid));
	  SendClientMessage(playerid,COLOR_BRIGHTRED,String);
	  	if(!dini_Exists(GetPlayerFile(playerid))) return SendClientMessage(playerid,COLOR_LIGHTBLUE," - /Register - אינך רשום במערכת, כדי להירשם אנא הקש");
	  if(PlayerInfo[playerid][LoggedIn]) return SendClientMessage(playerid,COLOR_LIGHTBLUE," - .הינך מחובר לחשבונך כבר");
	  format(PlayerInfo[playerid][Password],24,"%s",dini_Get(GetPlayerFile(playerid),"Password"));
	  ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"                       .התחברות - -=Stunts & DM=-","     .אנא הקש את סיסמתך בבקשה - -=Stunts & DM=-","התחבר","ביטול");
		return 1;

	}

	return 1;
}
Reply
#2

Here is the crash info-
Code:
--------------------------

Exception At Address: 0x0047396B



Registers:

EAX: 0x0012F7B0	EBX: 0x00D1B730	ECX: 0x00000000	EDX: 0x004056C0

ESI: 0x00000000	EDI: 0x00D1A048	EBP: 0x0012F7C0	ESP: 0x0012F798

EFLAGS: 0x00010286



Stack:

+0000: 0x00D1A048  0x00D1A048  0x00D1B730  0xFFFFFFFF

+0010: 0x0012F798  0x0012F3BC  0x0012FCE4  0x004774CC

+0020: 0x00490D68  0xFFFFFFFF  0x00D1C56C  0x004056CD

+0030: 0x00000000  0x004010B6  0x00D1A048  0x00D29944

+0040: 0x00D202E8  0x00402B63  0x00D1A048  0x00000006

+0050: 0x0012F800  0x00D29944  0x0012FC88  0x00000000

+0060: 0x00CEEE90  0x00000000  0x00000000  0x00009658

+0070: 0x0000965C  0x00009AE8  0x00005AEC  0x00009668

+0080: 0x00005AEC  0x00D1B730  0x00D202E8  0x00000000

+0090: 0x00D1B0C0  0x00004BB8  0x00451B9F  0x00D1A048

+00A0: 0x0012F854  0x00000017  0x00D1A048  0x00000000

+00B0: 0x7A0F8B59  0x00000000  0x7A0F8B59  0x00000000

+00C0: 0x0046EB8D  0x00000017  0x0098DAF8  0x0098ABF8

+00D0: 0x00441AE9  0x0012FCB8  0x0098ABF8  0x00E392E8

+00E0: 0x0098ABF8  0x00440028  0x0063006F  0x006D0075

+00F0: 0x006E0065  0x00730074  0x00610020  0x0064006E

+0100: 0x00530020  0x00740065  0x00690074  0x0012F8D8

+0110: 0x00980000  0x7C910222  0x00000002  0x009806E8

+0120: 0x00980000  0x00CEEE48  0x0012F8B0  0x00D1A950

+0130: 0x0012FAF4  0x7C90E920  0x7C910228  0xFFFFFFFF
Reply
#3

Do not bump it! Only 1 hours passed, also whats that text? Russian?
Reply
#4

it used to work fine, now its not, and its when i send the message, the text is hebrew
Reply
#5

Bump
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)