Jump to content
  • 0

Problema consola..


VipBo$$

Question

Salut din nou.

Am si eu inca o ploblema ca de obicei.

Deci cand deschid consola la server totul bine se incarca tot.

Si cand intru pe server nu merge ma pune sa bag parola si nu ma logheaza, iar in consola imi arata asa:

 

[21:51:36] [debug] Run time error 4: "Array index out of bounds"
[21:51:36] [debug]  Accessing element at index 65535 past array upper bound 1999
[21:51:36] [debug] AMX backtrace:
[21:51:36] [debug] #0 0020e398 in ?? (21) from gamemode.amx
[21:51:36] [debug] #1 000cb5d0 in public OnPlayerLogin (0, 111422832) from gamemode.amx
[21:51:36] [debug] #2 001fd30c in public OnDialogResponse (0, 2, 1, -1, 111166204) from gamemode.amx
[21:51:44] [debug] Run time error 4: "Array index out of bounds"
[21:51:44] [debug]  Accessing element at index 65535 past array upper bound 1999
[21:51:44] [debug] AMX backtrace:
[21:51:44] [debug] #0 0020df5c in ?? (21) from gamemode.amx
[21:51:44] [debug] #1 00044740 in public SSCANF_OnPlayerDisconnect (0, 1) from gamemode.amx
[21:51:44] [debug] #2 00002df0 in public Itter_OnPlayerDisconnect (0, 1) from gamemode.amx
[21:51:44] [debug] #3 000023e8 in public OnPlayerDisconnect (0, 1) from gamemode.amx
[21:51:44] [part] VipBo$$ has left the server (0:1)

 

 

Dc imi da chesti asta???

Si cum o rezolv?

Edited by AlexBo$$

g4JGBJX.gif.31953391ab64171df562293ad37a0875.gif.9d26b39cd3270634d9cf89dcb43fba87.gif

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 OnPlayerLogin (0, 111422832) 

La public  onplayerlogin se apeleaza acel numar mare  111422832

 

Iar apoi vad ca acel numar este apelat in 

public OnDialogResponse (0,                   2,               1,                -1,        111166204) 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

111166204 fiind parola cel mai probabil, dupa ce o introduci ai aceasta eroare

 65535 past array upper bound 1999

65535 reprezinta invalid player id si mai departe spune ca incerci sa atribui valoarea unei variabile care este definita vector de 2000

past array upper bound 1999

ceva de genul new variabila[2000];

Ea nu are decat 2000 de valori iar tu o accesezi pe a 65535a care nu exista cam asta este tot ce vad eu, trebuie sa cauti variabilele definite [2000] din ce as spune eu.

Nu sunt sigur de variabila asta e ce cred eu, dar cred ca se poate ca ondialogresponse sa nu suporte mai multe de playerid=1999 si tu il accesezi prin 65535

  

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.