28.11.2016, 12:19
I dont know how to sort it out, nor do i get any logs in console, but apparently the server freezes for about 8 to 10 seconds, means, everything freezes, anything you typed, people will be afk for you and cant send anything in chat, when this happens irc freezes aswell, once it over its back to normal and occurs after kinda 30 to 60 mins.
Whatever cmd / chat you typed will popup after its over.
This is my onplayerupdate:
Any suggestions? or maybe how to debug the problem? i have -d3 and all those flags.
This is the only unusual thing i see in console (happens when i load my .db file, doesnt happen if i dont laod it.)
Dont really think the vps is the problem, cuz we had 1gb ram vps, it used to do this and thus we upgraded to 2 gb ram still same.
Whatever cmd / chat you typed will popup after its over.
This is my onplayerupdate:
PHP код:
lastOPU[playerid] = GetTickCount();
if (isafk_{playerid})
{
UpdateDynamic3DTextLabelText(afklabel[playerid], 0xFFFF00FF," ");
isafk_{playerid} = false;
}
new keys, ud, lr;
GetPlayerKeys(playerid, keys, ud, lr);
if (ud != 0 || lr != 0) ac_vars[playerid][ac_lastudlr] = GetTickCount();
This is the only unusual thing i see in console (happens when i load my .db file, doesnt happen if i dont laod it.)
PHP код:
[08:44:22] [debug] Run time error 4: "Array index out of bounds"
[08:44:22] [debug] Accessing element at index 12 past array upper bound 11
[08:44:22] [debug] AMX backtrace:
[08:44:22] [debug] #0 000a7d24 in public IRC_OnGameModeInit () at ffs.pwn:600
[08:44:22] [debug] #1 native CallLocalFunction () from samp03svr
[08:44:22] [debug] #2 0002a9fc in public zcmd_OnGameModeInit () at C:\Users\iLearner\Desktop\ffss\pawno\include\irc.inc:199
[08:44:22] [debug] #3 native CallLocalFunction () from samp03svr
[08:44:22] [debug] #4 00029a70 in public SSCANF_OnGameModeInit () at C:\Users\iLearner\Desktop\ffss\pawno\include\zcmd.inc:68
[08:44:22] [debug] #5 00023114 in ?? () at C:\Users\iLearner\Desktop\ffss\pawno\include\sscanf2.inc:174
[08:44:22] [debug] #6 00007a18 in public Itter_OnGameModeInit () at C:\Users\iLearner\Desktop\ffss\pawno\include\YSI\y_hooks/impl.inc:483
[08:44:22] [debug] #7 native CallLocalFunction () from samp03svr
[08:44:22] [debug] #8 0000214c in public ScriptInit_OnGameModeInit () at C:\Users\iLearner\Desktop\ffss\pawno\include\YSI\y_iterate.inc:791
[08:44:22] [debug] #9 00000d6c in public OnGameModeInit () at C:\Users\iLearner\Desktop\ffss\pawno\include\YSI\internal\..\y_scriptinit.inc:171