SA-MP Forums Archive
Run time error 20 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Run time error 20 (/showthread.php?tid=583280)



Run time error 20 - Mamal75 - 27.07.2015

Hello Everyone
my server problem:
crashdetect plugin somtimes print this debug error in server console and always when somone tries to join

Код:
[debug] Run time error 20: "Invalid index parameter (bad entry point)"
Server Log:

Код:
[connection] 127.0.0.1:52575 requests connection cookie.
[connection] incoming connection: 127.0.0.1:52575 id: 0
[debug] Run time error 20: "Invalid index parameter (bad entry point)"
[join] Test has joined the server (0:127.0.0.1)
Note: I already have main() function in my gamemode.
i searched about this tun time error and everyone said add "main" to your game mode but i have it.

thanks in advance


Re: Run time error 20 - xVIP3Rx - 27.07.2015

Must be "main () {}" though..


Re: Run time error 20 - Mamal75 - 27.07.2015

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
Must be "main () {}" though..
read it again

Quote:
Originally Posted by Mamal75
Посмотреть сообщение
Note: I already have main() function in my gamemode.
i searched about this tun time error and everyone said add "main" to your game mode but i have it.



Re: Run time error 20 - xVIP3Rx - 27.07.2015

Quote:
Originally Posted by Mamal75
Посмотреть сообщение
read it again
I did, And I meant an open bracket after it, not just the "main()", but you should have them, otherwise it'll give a warning
Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
Must be "main () {}" though..
Update your plugins too, sometimes thats the issue


Re: Run time error 20 - Mamal75 - 27.07.2015

i have brackers !
my main:
Код:
main() {}
but i updated all my plugins and includes and problem fixed...
thank you so much
+repped for your help