About DJson - 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: About DJson (
/showthread.php?tid=243741)
About DJson - Max_Coldheart - 24.03.2011
I keep getting this error:
pawn Код:
warning 203: symbol is never used: "djson_GameModeExit"
warning 203: symbol is never used: "djson_GameModeInit"
and I have only included it.
What to do? How to fix
Re: About DJson -
Zh3r0 - 24.03.2011
Post them inside the callback they represent!
pawn Код:
public OnGameModeInit( ) djson_GameModeInit( );
public OnGameModeExit( ) djson_GameModeExit( );
Re: About DJson - Max_Coldheart - 24.03.2011
So what should I do?
I havent used funtion djson_GameModeInit();
or djson_GameModeExit();
Re: About DJson -
Serbish - 24.03.2011
If you don't use them and don't need them, just delete them.
Re: About DJson -
Zh3r0 - 24.03.2011
Quote:
Originally Posted by Serbish
If you don't use them and don't need them, just delete them.
|
Those should be used, but because they are not used on the right callback it will received a warning because those aren't used anywhere.
So do as i said!
copy paste djson_GameModeInit into OnGameModeInit callback and same for the djson_GameModeExit!
Re: About DJson -
Jochemd - 24.03.2011
Or use a pragma to set them unused.
Re: About DJson -
Calgon - 24.03.2011
Or just use them as you need them or DJSON won't function properly.
Common sense?
Re: About DJson -
Zh3r0 - 24.03.2011
Quote:
Originally Posted by Jochemd
Or use a pragma to set them unused.
|
That'be wrong! I said DJson needs those callbacks to be EXISTING inside the callbacks they represent!
Re: About DJson -
Jochemd - 24.03.2011
Quote:
Originally Posted by Zh3r0
That'be wrong! I said DJson needs those callbacks to be EXISTING inside the callbacks they represent!
|
Yeah, but if he is getting the warning, I guess he's not really using it.
Re: About DJson -
Zh3r0 - 24.03.2011
Quote:
Originally Posted by Jochemd
Yeah, but if he is getting the warning, I guess he's not really using it.
|
But that proves that he is trying to use DJson and got stuck at this lame warning!