20.12.2010, 14:30
HI, what it is wron on this EMAIL script. Whan I pur this script and I this use, server crash
Код:
case 1: // outbox
{
new result[3048],
name[MAX_PLAYER_NAME],
QR[256],
Subject[100],
Reciever[60],
Time[10],
New
;
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(QR,sizeof(QR),"SELECT `Reciever`,`Subject`,`Time`,`New` FROM `Emails` WHERE `Sender`='%s@"#EMAIL_NAME"' ORDER BY `MK` DESC LIMIT 20",name);
mysql_query(QR);
mysql_store_result();
if(!mysql_num_rows()) return SendClientMessage(playerid,0xFFFFFF30," * You don't have any messages in your outbox!");
while(mysql_fetch_row_format(QR,"|",mysql_connection))
{
sscanf(QR,"sssi",Reciever,Subject,Time,New);
if(!New)
format(result,sizeof(result),"%s{FFFFFF}'%s'{FF9933} TO %s{FFFF33} %s\n",result,Subject,Reciever,Time);
else
format(result,sizeof(result),"%s{FFFFFF}'%s'{FF9933} TO %s{FFFF33} UNREAD\n",result,Subject,Reciever);
}
mysql_free_result();
ShowPlayerDialog(playerid,DIALOGID+2,DIALOG_STYLE_LIST,"Outbox",result,"Ok","Back");
return 1;
}
Код:
SA-MP 0.3c-RC5 Exception At Address: 0x3A0836BF Registers: EAX: 0x00000000 EBX: 0x00000000 ECX: 0x00000001 EDX: 0x00000001 ESI: 0x0CF9BBD0 EDI: 0x0CF9BC2D EBP: 0x00000041 ESP: 0x0022FC48 EFLAGS: 0x00010202 Stack: +0000: 0x00000041 0x00000031 0x01C7035B 0x0CF99848 +0010: 0x3A082872 0x00000202 0x00000031 0x00000041 +0020: 0x00000000 0x01C7035B 0x00000202 0x00000000 +0030: 0x01C7035B 0x03786170 0x3A060698 0x001E08FE +0040: 0x00000202 0x00000000 0x01C7035B 0x0022FD2C +0050: 0x00000202 0x0022FCDC 0x00000000 0xC0018CCD +0060: 0xFFFFFFFE 0x7753888D 0x775370F4 0x775386EF +0070: 0x001E08FE 0x00000202 0x00000000 0x01C7035B +0080: 0x00000202 0xDCBAABCD 0x00000000 0x0022FD2C +0090: 0x00000202 0x0022FD54 0x77538876 0x3A060500 +00A0: 0x001E08FE 0x00000202 0x00000000 0x01C7035B +00B0: 0xB770F909 0x0022FE24 0x0022FE1C 0x01CA7B98 +00C0: 0x00000024 0x00000001 0x00000000 0x00000000 +00D0: 0x00000030 0xFFFFFFFF 0xFFFFFFFF 0x7753881F +00E0: 0x00000000 0x00000000 0x00000001 0x00000000 +00F0: 0x00000000 0x0022FCF8 0x0022F848 0x0022FDA4 +0100: 0x775862E3 0xC0018CCD 0x00000000 0x0022FDB4 +0110: 0x775389B5 0x00000000 0x3A060500 0x001E08FE +0120: 0x00000202 0x00000000 0x01C7035B 0x01CA7BAC +0130: 0x00000001 0xB770F9E9 0x00000001 0x0000000A +0140: 0x00000000 0x77532FDC 0x00000000 0x00000000 +0150: 0x00000000 0x0022FD7C 0x0022F848 0x0022FF78 +0160: 0x775862E3 0xC0018D85 0xFFFFFFFE 0x0022FDC4 +0170: 0x77533578 0x3A060500 0x00000001 0x77527E90 +0180: 0x00748A82 0x0022FE1C 0x76E828F7 0x00000000 +0190: 0x0022FF88 0x7FFD6000 0x01650000 0x41F138C5 +01A0: 0x016510F0 0x00000008 0x00000100 0x00000008 +01B0: 0x00000102 0x44700000 0x44070000 0x00000000 +01C0: 0x00000000 0x00000780 0x00000438 0x00000000 +01D0: 0x000061A8 0x001E08FE 0x00000202 0x00000000 +01E0: 0x01C7035B 0x00680D4A 0x0000035B 0x000001C7 +01F0: 0x0000002C 0x0022FE2C 0x00825EA4 0x76E828F7 +0200: 0x00000000 0x7FFD6000 0xFFFFFFFF 0x00821D17 +0210: 0x00000065 0x00000065 0x0022FF88 0x008246F1 +0220: 0x00400000 0x00000000 0x018D20E1 0x0000000A +0230: 0x00000094 0x00000006 0x00000001 0x00001DB0 +0240: 0x00000002 0x00000000 0x00000000 0x00000000 +0250: 0x00000000 0x00000000 0x00000000 0x00000000 +0260: 0x00000000 0x00000000 0x00000000 0x00000000 +0270: 0x00000000 0x00000000 0x00000000 0x00000000 SCM Op: 0x470, lDbg: 0 Game Version: US 1.0 State Information: Ped Context: 0 P0 (0,0) P1 (0,0)

