Variable for filterscript and gamemode
#1

hi, i've several problems with my user data script inside my gamemode so i decided to put it into a filterscript
but there is an another problem if i want to set a variable in my gamemode like:
pawn Code:
pMoneybags_found[playerid] ++;
it can't find it in the filterscript! And here is my question how i can set a variable for Gamemode and filterscript? (For Example EXTERN New pMoneybags_found[playerid])
Reply
#2

The easiest way is with an include.
Reply
#3

sorry but i've never made a filterscript i always was scripting a gamemode, where i can include the variable?
Reply
#4

if I understand what you really want, you can create an include with your data script.
Reply
#5

ok hope u will understand. How can i include the variables from the gm into the fs and from the fs into the gm, like this example:
pawn Code:
#include <FILTERSCRIPT:Myuserdatas>
?
Reply
#6

I don't know what you means "data script", but anyway you can put it in an include file (like you've said before: Myuserdatas.inc), store it at pawno/includes and in your gamemode:

pawn Code:
#include <Myuserdatas>
I'm not sure if it's what you want.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)