Run time error 4

Started by SA:MP, May 05, 2023, 05:45 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

SA:MP

Run time error 4

I always got this error in my server console


Code:

[22:05:28] [debug] Parameter count corrections:
[22:05:28] [debug]
[22:05:28] [debug] The 1st mangled argments (e.g. `<1073741823 arguments>`) below should read `<1 arguments>`
[22:05:28] [debug]
[22:05:28] [debug] Run time error 4: "Array index out of bounds"
[22:05:28] [debug]  Attempted to read/write array element at index 60 in array of size 50
[22:05:28] [debug] AMX backtrace:
[22:05:28] [debug] #0 003dd368 in public _y_utils_OnPlayerConnect (60) in roleplay.amx
[22:05:28] [debug] #1 00016738 in public SSCANF_OnPlayerConnect (60) in roleplay.amx
[22:05:28] [debug] #2 00008a64 in public MP_OPC (60) in roleplay.amx
[22:05:28] [debug] #3 native CallLocalFunction () in samp03svr
[22:05:28] [debug] #4 00006650 in ?? (60) in roleplay.amx
[22:05:28] [debug] #5 00025cc4 in public OnPlayerConnect (60) in roleplay.amx

I dont know how to fix it



here's my onplayerconnect codes

its quite long thats why I put in pastebin

https://pastebin.com/FaxLDbUz



Thanks in advance

Source: Run time error 4