Assigning gamemode variables to values in a filterscript
#3

In case you have tested it in OnFilterScriptInit, it wouldn't work - you'd have to delay it.

pawn Код:
// <filterscript>
#define SetPlayerWhatever(%0,%1) CallRemoteFunction("GM_SetPlayerWhatever", "ii", %0, %1)

// an example setting the value to 10 for that playerid somewhere in filterscript:
SetPlayerWhatever(playerid, 10);

// <gamemode>
// global:
new whatever[MAX_PLAYERS];

forward GM_SetPlayerWhatever(playerid, value);
public GM_SetPlayerWhatever(playerid, value)
{
    whatever[playerid] = value;
}
It works good.
Reply


Messages In This Thread
Assigning gamemode variables to values in a filterscript - by Stinged - 23.06.2015, 15:50
Re: Assigning gamemode variables to values in a filterscript - by J0sh... - 23.06.2015, 15:53
Re: Assigning gamemode variables to values in a filterscript - by Konstantinos - 23.06.2015, 16:06
Re: Assigning gamemode variables to values in a filterscript - by Stinged - 23.06.2015, 16:22

Forum Jump:


Users browsing this thread: 1 Guest(s)