Paycheck Problem
#1

Players should get a paycheck each hour (auto-paycheck), I can use /payday to give them a paycheck too but when I /payday or when a paycheck comes the samp-server.exe crashes (was working fine with 0.3c and 0.3d)
The code Is fine, and crashdetect gives that:
Код:
[15:05:16] [debug] Run time error 4: "Array index out of bounds"
[15:05:16] [debug]  Accessing element at index 999 past array upper bound 500
[15:05:16] [debug] AMX backtrace:
[15:05:16] [debug] #0 00066288 in public OnPlayerStateChange () from MCRP.amx
[15:05:22] [zcmd] [Sarra]: /payday
[15:05:22] [debug] Server crashed while executing MCRP.amx
[15:05:22] [debug] AMX backtrace:
[15:05:22] [debug] #0 native fwrite () [00405710] from samp-server.exe
[15:05:22] [debug] #1 00061d6c in ?? () from MCRP.amx
[15:05:22] [debug] #2 00172334 in ?? () from MCRP.amx
[15:05:22] [debug] #3 0027e370 in public cmd_payday () from MCRP.amx
[15:05:22] [debug] #4 native CallLocalFunction () [00472260] from samp-server.exe
[15:05:22] [debug] #5 0000b9e0 in public OnPlayerCommandText () from MCRP.amx
[15:05:22] [debug] System backtrace:
[15:05:23] [debug] #0 0040534e in ?? () from C:\Documents and Settings\HP\Bureau\NCRP\samp-server.exe
Reply
#2

The codes aren't fine, show us them.

Show us the command /payday: [15:05:22] [debug] #3 0027e370 in public cmd_payday () from MCRP.amx

and I don't know what you have in OnPlayerStateChange, but show us: #0 00066288 in public OnPlayerStateChange () from MCRP.amx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)