SA-MP Forums Archive
Filterscript as a GM addon - 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: Filterscript as a GM addon (/showthread.php?tid=264053)



Filterscript as a GM addon - SaW_[VrTx] - 24.06.2011

Hi there..
Is it possible to make filterscript contact with gamemode? I want to make big system in filterscript, not in Gm, so i can unload it easily and will not consume much space. It's RP GM and i have to use GM strings, variables and so so, like PlayerInfo[playerid][pCash].. When i try to use PlayerInfo without defining everything from beginning, it gives me error that PlayerInfo isnt defined. When i define it, FS doesnt read variables from GM.


Re: Filterscript as a GM addon - DaRealz - 24.06.2011

I have the same problem, i don't think its possible... I just added mine into the gamemode... and if you still want to save it for some other time, just save it into a text file or something...

Not much help, but im happy to see the same problem.


Re: Filterscript as a GM addon - GangsTa_ - 24.06.2011

Yeah not sure if it's possible, but do what Realz said - add your filterscript code into your gamemode and remove the unneeded variables which have no sense, that's it...
And about your last sentence is because FS is a file and the GM is another file. When compiling they don't interaction, that's why you get the undefined thingy.


Re: Filterscript as a GM addon - Calgon - 24.06.2011

I wrote a short tutorial on this: https://sampforum.blast.hk/showthread.php?pid=1246503#pid1246503

Filterscripts are great for dynamically loading and unloading game features during runtime.

I wish more people would create gamemodes that worked better in conjunction with filterscripts. Then again, I should probably do this with my releases too.


Re: Filterscript as a GM addon - Scenario - 24.06.2011

You could use PVars for one, perhaps an include for other things such as "player info arrays."