15.11.2015, 22:03
Olб, estou aqui mais uma vez com esse erro bobo que estб quebrando cabeзa, mas sei que ele estб tentando acessar um valor que nгo foi criado, mas minha pergunta й, qual dos 3 parвmetros ali em baixo estб tentando acessar 155?
giveplayerid, result, ou PlayerName ?
[20:22:36] [debug] Run time error 4: "Array index out of bounds"
[20:22:36] [debug] Accessing element at index 155 past array upper bound 23
[20:42:31] [debug] #1 00244310 in public OnPlayerCommandText (playerid=1, cmdtext[]=@00329704 "/ban aand teste") at C:\Users\lucas\Desktop\Mania Gamer\gamemodes\MGR.pwn:36555
A linha 36555 й essa aqui:
Poderiam me explicar? Obrigado!
giveplayerid, result, ou PlayerName ?
[20:22:36] [debug] Run time error 4: "Array index out of bounds"
[20:22:36] [debug] Accessing element at index 155 past array upper bound 23
[20:42:31] [debug] #1 00244310 in public OnPlayerCommandText (playerid=1, cmdtext[]=@00329704 "/ban aand teste") at C:\Users\lucas\Desktop\Mania Gamer\gamemodes\MGR.pwn:36555
A linha 36555 й essa aqui:
PHP Code:
SBan(giveplayerid, result, PlayerName(playerid));