SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 21/02/2020, 08:13 PM   #1
WiliHacking
Huge Clucker
 
Join Date: Jan 2016
Posts: 256
Reputation: 2
Default Debug Crashdetect

Eu estou com um problema, meu crashdetect está acusando isso:

Code:
[17:49:01] [debug] Run time error 4: "Array index out of bounds"
[17:49:01] [debug]  Attempted to read/write array element at negative index -1
[17:49:01] [debug] AMX backtrace:
[17:49:01] [debug] #0 00083584 in public OPBA_OnPlayerEnterVehicle (3, 100, 0) in GM.amx
[17:49:01] [debug] #1 0004d970 in public ac_OnPlayerEnterVehicle (3, 100, 0) in GM.amx
[17:49:01] [debug] #2 00022e10 in public OnPlayerEnterVehicle (3, 100, 0) in GM.amx
Isso acontece sempre que eu estou longe e fico apertando várias vezes para entrar na moto, alguém sabe como eu consigo resolver? Minha public OnPlayerEnterVehicle não tem nada.

Eu acredito que seja um bug do SAMP.
__________________
WiliHacking is offline   Reply With Quote
Old 21/02/2020, 08:20 PM   #2
willttoonn
Gangsta
 
willttoonn's Avatar
 
Join Date: Nov 2011
Location: Brazil
Posts: 935
Reputation: 88
Default Re: Debug Crashdetect

Uma variável ta entrando como -1. Se você tem tipo um CarData[carid][carType], o carid ta indo como -1, logo sendo inválido e dando esse erro. Debug o código pra ver qual é a variável que ta indo como -1.
__________________
Sometimes a captain has to make the unpopular call because that's his responsibility

_________ Development Manager ______________________ Administrator
____________________ Brazilian Hard Roleplay Server ___________ Unofficial discord of the Brazilian/Portuguese SA-MP board

____________ _

willttoonn is offline   Reply With Quote
Old 21/02/2020, 09:20 PM   #3
WiliHacking
Huge Clucker
 
Join Date: Jan 2016
Posts: 256
Reputation: 2
Default Re: Debug Crashdetect

@Edit Achei o problema, obrigado.
__________________
WiliHacking is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Debug CrashDetect ViniBnT Português/Portuguese 3 23/09/2017 05:53 PM
debug in crashdetect TheDarkBlade Scripting Help 9 18/11/2016 05:37 PM
Crashdetect (debug) Penguin1997 Scripting Help 2 24/08/2016 11:32 AM
Debug Crashdetect Nin9r Server Support 12 21/09/2015 12:02 PM
[Ajuda] debug crashdetect AndersonAq Português/Portuguese 7 05/04/2014 11:38 AM


All times are GMT. The time now is 08:38 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.