[HELP]Need help with server bug.
#1

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!
Reply
#2

Do you have function main() in your script?
Reply
#3

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?
Reply
#4

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
Reply
#5

Do you have OnGameModeInit?
Reply
#6

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.
Reply
#7

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

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.
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)