SA-MP Forums Archive
Script error - 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: Script error (/showthread.php?tid=236915)



Script error - sim_sima - 08.03.2011

Hey guys.
I made a script, that is using Dini.
It works fine when i compile it, but it doesnt work optimally in-game, and i also get an error in the server console.
The error is: " Script[gamemodes/rpg.amx]: Run time error 20: "Invalid index parameter (bad entry point)" ".
Here is the script: http://pastebin.com/whPPbQGH (Dont know why pastebin makes defines and includes same color as comments).
If you wanna download it in stead, its attached below.

Its a very small script, so i hope someone will be kind and take a look at it. Thank you.


Re: Script error - sim_sima - 08.03.2011

This is really strange...


Re: Script error - Davz*|*Criss - 08.03.2011

Check

pawn Код:
/*
By ur name
*/



Re: Script error - sim_sima - 08.03.2011

Quote:
Originally Posted by Davz*|*Criss
Посмотреть сообщение
Check

pawn Код:
/*
By ur name
*/
Do you mean the comment i have at the top?


Re: Script error - sim_sima - 08.03.2011

Its fixed now.


Re: Script error - Davz*|*Criss - 08.03.2011

pawn Код:
/*RPG Scirpt for
Sim_sima's, Madsen's and Heavy Badass's
Server project*/
Needs changing to

pawn Код:
/*
RPG Scirpt for Sim_sima's, Madsen's and Heavy Badass's server project
*/



Re: Script error - Davz*|*Criss - 08.03.2011

Yeah that was wrong in your GM.


Re: Script error - Sascha - 08.03.2011

no lol..
it doesn't care where you write what behind a /* */ comment...
it outlines everything which is behind the /* the line doesn't matter for it as pawno and later the server ignore it


Re: Script error - RoboN1X - 08.03.2011

maybe you forgot to add this on top of your game mode script:
pawn Код:
main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}
try that, i hope it can help you


Re: Script error - Stigg - 08.03.2011

Quote:
Originally Posted by Davz*|*Criss
Посмотреть сообщение
pawn Код:
/*RPG Scirpt for
Sim_sima's, Madsen's and Heavy Badass's
Server project*/
Needs changing to

pawn Код:
/*
RPG Scirpt for Sim_sima's, Madsen's and Heavy Badass's server project
*/
Whats that got to do with the problem ?
Would'nt cause errors or stop the script from working.