SA-MP Forums Archive
sscanf 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)
+--- Thread: sscanf error ? (/showthread.php?tid=517258)



sscanf error ? - CBCandyBoy - 04.06.2014

hey guys i tried to use this script but when ever i try to use it it wont work and in console it shows this error

Код:
[11:13:15]    Error: Function not registered: 'SSCANF_Init'
[11:13:15]    Error: Function not registered: 'SSCANF_Join'
[11:13:15]    Error: Function not registered: 'SSCANF_Leave'
[11:13:15]    Error: Function not registered: 'sscanf'
[11:13:15] Script[gamemodes/XVM_v2.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[11:13:15] Number of vehicle models: 0
NOTE: i have updated my streamer and sscanf 2 to the latest version and all my plugins


Re: sscanf error ? - Parallex - 04.06.2014

Nevermind.


Re: sscanf error ? - CBCandyBoy - 04.06.2014

what did i wrote in big red text?


Re: sscanf error ? - Parallex - 04.06.2014

Quote:
Originally Posted by CBCandyBoy
Посмотреть сообщение
what did i wrote in big red text?
Probably, this isn't in the Game-mode:
pawn Код:
main( ) { }



Re: sscanf error ? - CBCandyBoy - 04.06.2014

wait when i putted nativechecker in the last those errors dissapeard and just this one remained
Код:
[11:13:15] Script[gamemodes/XVM_v2.amx]: Run time error 20: "Invalid index parameter (bad entry point)"



Re: sscanf error ? - Parallex - 04.06.2014

Quote:
Originally Posted by CBCandyBoy
Посмотреть сообщение
wait when i putted nativechecker in the last those errors dissapeard and just this one remained
Код:
[11:13:15] Script[gamemodes/XVM_v2.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
Of course - those errors are not default-told by SA-MP server.exe, native checker plugin's make it do that.
Did you do what I told you?
You probably don't have this line in the Game-mode:
pawn Код:
main( ) { }



Re: sscanf error ? - Rittik - 04.06.2014

I think either you're using your gamemode as a filter script or using a filter script as you're gamemode.


Re: sscanf error ? - Threshold - 04.06.2014

The only difference between the two is the callbacks that get loaded from the start. OnGameModeInit, OnFilterScriptInit, OnGameModeExit and OnFilterScriptExit. It wouldn't give you error, and the "Invalid entry point" is usually caused when you haven't added the 'main()' function into your gamemode, as mentioned above by BenJackster. You could have easily ******d this problem and found a solution within seconds... but no, you people seem to shoot and ask questions later.