Jump to content
  • 0

Problema turf


Soryn.

Question

Salut! De curand m am pus sa modific cate ceva pe la GM-ul lui Edison si anume Burned, vreau sa ii adaug niste factiuni si sa fac niste turfuri noi+alte chestii mici pentru mine mai mult si niste prieten, nu e niciun proiect si nici in plan sa fie vorba despre asa ceva, cel putin momentan:). Dar totusi vreau sa l fac cat mai pe placu meu, asa ca, am urmarit un tutorial de a lui Edison, sa creez turfuri pe server[tuturoial facut pe un alt GM, nu pe BURNED]. Am facut exacrt ca si in tutorialul lui, dar cand deschid serverul "pe local host, la mine n PC", in consola aia care apare, in loc de --Turf [nr lor]- apare asta : 

[debug] Run time error 4: "Array index out of bounds"
[debug]  Accessing element at index 268 past array upper bound 23
[debug] AMX backtrace:
[debug] #0 0025c154 in public LoadTurfs () from wa-rpg.amx
[debug] #1 00093ab8 in public L_AFK_OnGM () from wa-rpg.amx
[debug] #2 native CallLocalFunction () from samp-server.exe
[debug] #3 00012ec4 in public zcmd_OnGameModeInit () from wa-rpg.amx
[debug] #4 native CallLocalFunction () from samp-server.exe
[debug] #5 00012a0c in public SSCANF_OnGameModeInit () from wa-rpg.amx
[debug] #6 0000cd74 in public Itter_OnGameModeInit () from wa-rpg.amx
[debug] #7 native CallLocalFunction () from samp-server.exe
[debug] #8 0000c044 in public ScriptInit_OnGameModeInit () from wa-rpg.amx
[debug] #9 0000b024 in public PZone_OnGameModeInit () from wa-rpg.amx
[debug] #10 native CallLocalFunction () from samp-server.exe
[debug] #11 00000c88 in public OnGameModeInit () from wa-rpg.amx

 

!!!Daca sterg din baza de date turfurile, dispare si apare Turf 0. Cand sunt turfurile adaugate, ma lasa sa intru pe server doar ca nu mai functioneaza Spawn-ul de la factiunii, nu se incarca turfurile si probabil se buguiesc mai multe chestii, eu doar faptul ca nici spawn-ul nu mai functioneaza am observat. Dar, cum am spus, dupa ce-l sterg, merg toate ca inainte ,atata ca nu mai am niciun turf. Daca stie si poate cineva sa ma ajute, apreciez, mentionez din nou, e vorba de GM BURNED.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
On 4/13/2024 at 1:00 PM, ASGOOD said:

Mareste turf info, si pune id-uri in db in ordine, in burned se foloseste id-u din db ca key pe TurfInfo

Ai putea sa ma ajuti daca iti las un discord? Eu am marit in gamemode alea si am bagat id urile in baza de date, dar cand fac asta si intru pe server, nu mai merge niciun spawn la factiuni, ma arunca din mapa.

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.

Guest
Answer this question...

×   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.