Using virables of other filterscript, is it possible?
#1

I have 2 big Filtescripts and i dont want to merge it since it will become more confusing.
so my 1st filterscript has a virable:
Код:
new InDM[MAX_PLAYERS]
now i want to check if it's 0 in another filterscript like this
Код:
if (InDM[playerid] == 0)
so how to use 1st fs variable in 2nd fs?
Reply
#2

Incognito's GVar plugin: https://sampforum.blast.hk/showthread.php?tid=151076
Reply
#3

Yes. Use SetPVarInt(playerid, "var", value), GetPVarInt(playerid, "var");
Reply
#4

Use PVar's
Reply
#5

i know that, but is there a possiblity of using variables? i though CallRemoteFunction would do thatbut I do not how. so if somebody knows, tell me here.
Reply
#6

pawn Код:
forward GetSomething( playerid )
public GetSomething( playerid )
{
        return YourVariable;
}

// in your filterscript
new SomeVariable = CallRemoteFunction( "GetSomething", "i", playerid );
// now SomeVariable will hold the result of that function.
Reply
#7

Quote:
Originally Posted by Smileys
Посмотреть сообщение
pawn Код:
forward GetSomething( playerid )
public GetSomething( playerid )
{
        return YourVariable;
}

// in your filterscript
new SomeVariable = CallRemoteFunction( "GetSomething", "i", playerid );
// now SomeVariable will hold the result of that function.
thnx for replying.
i dont knw how to use it so can u just give me short tutorial how i shud do that, i explained my fs variables in the topic. thank u +rep'ed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)