GMX Crash my GTA client
#1

Hey when i type /gmx my GTA Client crash... Why?
Код:
	if(strcmp("/gmx", cmdtext, true) == 0)
{
    if(IsPlayerAdmin(playerid) == 0) return SendClientMessage(playerid, COLOR_RED, "You are not an Administrator!");
    
    new string[64];
    format( string, sizeof(string), "~b--- ~g~Server ~r~Restarting ~g~---");
    GameTextForAll( string, 12000, 3 );
    GameModeExit();
}
this is the error
Код:
SA-MP 0.3d-R2
Exception At Address: 0x00727B45

Registers:
EAX: 0x0000002E	EBX: 0x00BA0002	ECX: 0x00C781A0	EDX: 0xFF000000
ESI: 0x00BAAE40	EDI: 0x00000000	EBP: 0x00BAE483	ESP: 0x0028FB74
EFLAGS: 0x00210206

Stack:
+0000: 0x00719867   0x00BA0002   0x0028FBA4   0x00000000
+0010: 0x00000000   0x00000000   0x00BAAE40   0x00BAE483
+0020: 0x00719B62   0xFF000000   0x00000000   0x00719DE7
+0030: 0x4436D000   0x4399AEDD   0x00BAAE40   0x00BAE483
+0040: 0x00000000   0x44480000   0x00BAE483   0x00BAAE40
+0050: 0x00BAAE00   0xFF106290   0x00000000   0x0071A56A
+0060: 0x44381000   0x439BB126   0xFF106290   0x40000000
+0070: 0x00000000   0x44480000   0x439BB126   0x76EA6C30
+0080: 0x00BAAE40   0x526E8713   0x42FF0000   0x44381000
+0090: 0x00000001   0x42FF0000   0x00000002   0x439BB126
+00A0: 0x42FF0000   0x452879FC   0xFF106290   0x00000001
+00B0: 0x00000001   0x00724D4F   0x00C7DE28   0x00C7DDF8
+00C0: 0x00725921   0x448DA19D   0xC4FECCE9   0x428A3333
+00D0: 0x40000000   0x00BA873E   0xF4A460FF   0x76EA6C30
+00E0: 0x00000001   0x0058B2D3   0x00000000   0x448DA19D
+00F0: 0xC4FECCE9   0x428A3333   0x452879FC   0xC4D51604
+0100: 0x412D8106   0x4000924A   0x4390A494   0x43791B70
+0110: 0x00000000   0xFF000000   0x00000002   0x0ADF3C20
+0120: 0x0028FCA0   0x72B9960D   0x00000005   0x00000000
+0130: 0x72A8E876   0x0A5C0040   0x0028FCBC   0x00725BF5
+0140: 0x00020001   0x41600000   0xC4D51604   0x40000000
+0150: 0x000000FF   0x00000000   0x00000000   0x0000004C
+0160: 0x00000800   0x3E4CCCCD   0x00000001   0x00000000
+0170: 0x00000000   0x00000000   0x00000000   0x00585CE9
+0180: 0x00020001   0x00000001   0x00BA8720   0x40000000
+0190: 0x000000FF   0x03E64514   0x00000008   0x00585C2C
+01A0: 0x00000008   0x00000001   0x00000000   0x0000001A
+01B0: 0x0071A807   0x00000001   0x44480000   0x439BB126
+01C0: 0x00BAAE40   0x0000001A   0x00000018   0x00000000
+01D0: 0x00000090   0x00000062   0x00000010   0x000000FF
+01E0: 0x0058CFA5   0x44480000   0x439BB126   0x00BAAE40
+01F0: 0x0058FD06   0x00000320   0x0053E504   0x00000001
+0200: 0x00000001   0x76EA6C30   0x0028FD90   0x00000000
+0210: 0x01774620   0x00B6F028   0x03E74201   0x0000001A
+0220: 0x00000001   0x00000000   0x0053EB17   0x44480000
+0230: 0x43E10000   0x0053ECC2   0x00000001   0x00619B71
+0240: 0x0000001A   0x00000001   0x00000001   0x0000000A
+0250: 0x00748DA0   0x0000001A   0x00000001   0x755D1245
+0260: 0x00000000   0x0028FF88   0x7EFDE000   0x01770000
+0270: 0x4F493975   0x017710F0   0x00000008   0x00000100

SCM Op: 0x160, lDbg: 0

Game Version: US 1.0

State Information: Ped Context: 0
Reply
#2

~b is the reason you're crashing.
Add a tlide(~) after it.
Reply
#3

huh? dident understand anything o.O xD
Reply
#4

format( string, sizeof(string), "~b--- ~g~Server ~r~Restarting ~g~---");
->
format( string, sizeof(string), "~b~--- ~g~Server ~r~Restarting ~g~---");
Reply
#5

OHHHHHH wtf XD a LITTLE mistake... Tnx for seeing it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)