17.12.2013, 12:44
Have a problem
Код:
[15:48:10] Test Serverb has logged in. [15:48:25] [debug] Run time error 6: "Invalid instruction" [15:48:25] [debug] Unknown opcode 0x7800 at address 0xFFFFFFFF [15:48:25] [debug] AMX backtrace: [15:48:25] [debug] #0 ???????? in ?? () from UGRP.amx [15:48:27] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [15:48:27] [debug] Stack pointer (STK) is 0x3083C, heap pointer (HEA) is 0x30934 [15:48:27] [debug] AMX backtrace: [15:48:27] [debug] #0 ???????? in public S@@_OnPlayerDisconnect () from UGRP.amx [15:48:27] [debug] #1 native CallLocalFunction () [00471c30] from samp-server.exe [15:48:27] [debug] #2 ???????? in public Itter_OnPlayerDisconnect () from UGRP.amx [15:48:27] [debug] #3 native CallLocalFunction () [00471c30] from samp-server.exe [15:48:27] [debug] #4 ???????? in public SSCANF_OnPlayerDisconnect () from UGRP.amx [15:48:27] [debug] #5 native CallLocalFunction () [00471c30] from samp-server.exe [15:48:27] [debug] #6 ???????? in public Streamer_OnPlayerDisconnect () from UGRP.amx [15:48:27] [debug] #7 native CallLocalFunction () [00471c30] from samp-server.exe [15:48:27] [debug] #8 ???????? in public OnPlayerDisconnect () from UGRP.amx [15:48:27] [part] Test_Serverb has left the server (0:1)
Код:
public OnPlayerDisconnect(playerid, reason) { if(gPlayerLogged{playerid} == 1) { g_mysql_RemoveDumpFile(GetPlayerSQLId(playerid)); OnPlayerStatsUpdate(playerid); g_mysql_AccountOnline(playerid, 0); } gPlayerLogged{playerid} = 0; return 1; }