SA-MP Forums Archive
[HELP]Need help with server bug. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Need help with server bug. (/showthread.php?tid=78979)



[HELP]Need help with server bug. - sky_swayer - 24.05.2009

Whenever i start my home server, this is what i get on the rcon pannel.

Код:
[20:28:05] Script[gamemodes/test.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
Can someone help me please?

Also when i kill my player, its skin changes to skin id 0, that is CJ's skin.
Plus, whenever i restart gamemode (/gmx), all the players crash!



Re: [HELP]Need help with server bug. - Correlli - 24.05.2009

Do you have function main() in your script?


Re: [HELP]Need help with server bug. - sky_swayer - 24.05.2009

Quote:
Originally Posted by Don Correlli
Do you have function main() in your script?
Umm no..is it important to have? If yes then where to place it?


Re: [HELP]Need help with server bug. - .::: Ecko :::. - 24.05.2009

Quote:
Originally Posted by sky_swayer
Quote:
Originally Posted by Don Correlli
Do you have function main() in your script?
Umm no..is it important to have? If yes then where to place it?
Anywhere,but I suggest you to put it on the TOP of your script!

Ecko


Re: [HELP]Need help with server bug. - Luka P. - 24.05.2009

Do you have OnGameModeInit?


Re: [HELP]Need help with server bug. - sky_swayer - 24.05.2009

Quote:
Originally Posted by Luka[balkan-samp.com
]
Do you have OnGameModeInit?
Yea i do have it and have much stuff in that.

I added that function main()
Now that fatal error won't appear.

But still those two problems, CJ skin and player crash on /gmx is persisting. Please help.


Re: [HELP]Need help with server bug. - Luka P. - 24.05.2009

For CJ skin,check if u have SetPlayerSkin(playerid,0) under OnPlayerDeath,if you have,then delete it.


Re: [HELP]Need help with server bug. - sky_swayer - 24.05.2009

Quote:
Originally Posted by Luka[balkan-samp.com
]
For CJ skin,check if u have SetPlayerSkin(playerid,0) under OnPlayerDeath,if you have,then delete it.
Nopes, its clean.


Re: [HELP]Need help with server bug. - Correlli - 24.05.2009

Show us your OnGameModeExit() code, maybe there is some bad code which is causing the crash when you use gmx-cmd.


Re: [HELP]Need help with server bug. - Luka P. - 24.05.2009

Quote:
Originally Posted by Don Correlli
Show us your OnGameModeExit() code, maybe there is some bad code which is causing the crash when you use gmx-cmd.
@Don: Bok i tebi,također
@Sky: Yes,copy/paste your OnGameModeExit code