23.06.2015, 15:50
I've never had to set a gamemode variable from a filterscript to a value before, so I've never faced this problem.
If I ever wanted to get the value, I would use the CallRemoteFunction method, for example:
Now, I need to set that variable to a value, from the filterscript I'm currently scripting.
I've tried doing something like this, but it doesn't seem to work.
So I'm asking how could I do that?
If I ever wanted to get the value, I would use the CallRemoteFunction method, for example:
pawn Код:
forward GetPlayerWhatever(playerid);
public GetPlayerWhatever(playerid)
{
return whatever[playerid];
}
I've tried doing something like this, but it doesn't seem to work.
pawn Код:
forward SetPlayerWhatever(playerid, value);
public SetPlayerWhatever(playerid, value)
{
return whatever[playerid] = value;
}