Problem(error/warning): Sad testam nesto ig i kucam na sb /kill i kad me ubije normalno radi al baca debug u log
Deo skripte: [ pawn ]vaš odgovor[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): https://pastebin.com/4JsCYpcE
Slika/video ingame problema(obavezno ako je ingame problem): link slike
Debug
472
pregleda
4
postova
2. Jun 2019.
Hahah znao sam nisam morao ni ulaziti u log ali ajde da proverim samo.
Ovako killerid ti je 65535 znaci INVALID PLAYER ID
sto bi znacilo da trebas da imas proveru if(killerid == (ili) != (zavisi od situacije) INVALID_PLAYER_ID )
Ovako killerid ti je 65535 znaci INVALID PLAYER ID
sto bi znacilo da trebas da imas proveru if(killerid == (ili) != (zavisi od situacije) INVALID_PLAYER_ID )
2. Jun 2019.
You MUST check whether 'killerid' is valid (not INVALID_PLAYER_ID) before using it in an array (or really anywhere), as it will cause the OnPlayerDeath script to crash (not the entire script). This is because INVALID_PLAYER_ID is defined as 65535, and if an array only has 'MAX_PLAYERS' elements, e.g. 500, you're trying to access an index that is above 499, which is out of bounds.
https://wiki.sa-mp.com/wiki/OnPlayerDeath
Izvinjavam se zbog bumpa jebiga fon nmg da quote eto vam i bag xD
https://wiki.sa-mp.com/wiki/OnPlayerDeath
Izvinjavam se zbog bumpa jebiga fon nmg da quote eto vam i bag xD
2. Jun 2019.
Zile42O wrote on June 2, 2019, 3:06 am:
You MUST check whether 'killerid' is valid (not INVALID_PLAYER_ID) before using it in an array (or really anywhere), as it will cause the OnPlayerDeath script to crash (not the entire script). This is because INVALID_PLAYER_ID is defined as 65535, and if an array only has 'MAX_PLAYERS' elements, e.g. 500, you're trying to access an index that is above 499, which is out of bounds.
https://wiki.sa-mp.com/wiki/OnPlayerDeath
Izvinjavam se zbog bumpa jebiga fon nmg da quote eto vam i bag xD
https://wiki.sa-mp.com/wiki/OnPlayerDeath
Izvinjavam se zbog bumpa jebiga fon nmg da quote eto vam i bag xD
Fala radi <3
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava