Posts: 815
Threads: 127
Joined: May 2011
Reputation:
0
Well long story short, I have an Admin Filterscript and I'm using it, the problem is, account's are created and saved but unfortunately Cash and Score is not. I'm trying to figure out what the problem is. Although, when I'm an Admin on the FS and use "SetCash" or "SetScore", the stats are saved, I only noticed the functions I have in my Gamemode are not being saved, "GivePLayerScore","GivePlayerCash" and etc. Gamemode cash/score is not being saved.
I included the FS, in the "if defined FS" section of my GM. So I don't know, is this a FS issue or something is not right?
I also thought about it, maybe am I suppose to make the FS an include too, and include it in my GM, and use the functions of the FS? (Don't know whether this is possible)
Can anyone help me on figuring out this problem?
Posts: 427
Threads: 43
Joined: Oct 2015
Reputation:
0
Put the filterscript in the gamemode
Posts: 1,506
Threads: 13
Joined: Jun 2015
It's completely a bad practice to use an administrator system as a filterscript, just integrate it into the script and change a few things like the callbacks and functions aaand you're good to go.
Posts: 1,168
Threads: 60
Joined: Dec 2016
Reputation:
0
Only use things as a filterscript if you don't need it to connect to your gamemode.
Best is to don't use filterscript at all. You can only have a max number of filterscripts.
Just put all the code into your gamemode. If you can't succeed in this, i'd be happy to help you with it.
For example, my trucking filterscript has a command /seizeweight. If you want to make it work with your cop system. you might have to implent it into your gamemode.
Posts: 815
Threads: 127
Joined: May 2011
Reputation:
0
So even for example, I have a FS, like a job FS, so even for that, the money won't be saved right? Unless I implement the whole thing in the GM?
Another doubt is, my FS's, use ZCMD, I use strcmp. Can they co-exist together?
Posts: 1,168
Threads: 60
Joined: Dec 2016
Reputation:
0
Actually that depends on how your money system in your FS works. It can work together as a filterscript.
And i don't think they can exist together those command processers. but if they do, it is not good or efficient. I can help you convert those commands. I prefer ZCMD
Posts: 102
Threads: 2
Joined: Jul 2017
zcmd works same as strcmp internally but give speed boost, use pawn cmd or i-zcmd.