Jump to content

Problema Server


Recommended Posts


 Totul a mers ok, serverul nu a avut probleme pana cand am incercat sa il deschid astazi si mi-a aratat in consola:



[18:48:03] [debug] Run time error 4: "Array index out of bounds"
[18:48:03] [debug]  Accessing element at index 100 past array upper bound 99
[18:48:03] [debug] AMX backtrace:
[18:48:03] [debug] #0 0027fe3c in public LoadProperty () from gmm.amx
[18:48:03] [debug] #1 000a02c8 in ?? () from gmm.amx
[18:48:03] [debug] #2 0002840c in public L_AFK_OnGM () from gmm.amx
[18:48:03] [debug] #3 native CallLocalFunction () from samp-server.exe
[18:48:03] [debug] #4 0001894c in public SSCANF_OnGameModeInit () from gmm.amx
[18:48:03] [debug] #5 00012cfc in public Itter_OnGameModeInit () from gmm.amx
[18:48:03] [debug] #6 native CallLocalFunction () from samp-server.exe
[18:48:03] [debug] #7 00011e20 in public ScriptInit_OnGameModeInit () from gmm.amx
[18:48:03] [debug] #8 00010da4 in public PZone_OnGameModeInit () from gmm.amx
[18:48:03] [debug] #9 native CallLocalFunction () from samp-server.exe
[18:48:03] [debug] #10 00006a08 in public OnGameModeInit () from gmm.amx

 si nu prea stiu cum as putea sa rezolv. 

 Daca ma poate ajuta cineva va rog, multumesc!

Link to comment
Share on other sites

Du-te la new HouseInfo si schimba primul numar dintre [] cu cate case ai tu in baza de date. Exemplu:

Din new HosueInfo[100][hInfo]; Schimbi in: new HouseInfo[200][hInfo]...

De ce sa faci asa? Pentru ca acele "100" sunt la fel ca sloturile. Nu poti pune 200 de playeri pe un server care permite maxim 100 de sloturi. Sper ca ai inteles!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.