FS's and GM's communicating
#2

Simplest way I can think of is to use CallRemoteFunction.

Example:
OnGameMode
pawn Code:
enum Information
{
  cash,
  admin,
  level,
}
new pInfo[MAX_PLAYERS][Information];
public OnPlayerConnect(playerid)
{
  CallRemoteFunction("GetVars","iiii",playerid,pInfo[playerid][cash],pInfo[playerid][admin],pInfo[playerid][level]);
  return 1;
}
On Filterscript
pawn Code:
forward GetVars(playerid,cash,admin,level);
enum Information
{
  cash,
  admin,
  level,
}
new pInfo[MAX_PLAYERS][Information];
public GetVars(playerid,cash,admin,level)
{
  pInfo[playerid][cash]=cash;
  pInfo[playerid][admin]=admin;
  pInfo[playerid][level]=level;
}
Reply


Messages In This Thread
FS's and GM's communicating - by Mattjones17 - 13.01.2010, 22:34
Re: FS's and GM's communicating - by Joe Staff - 14.01.2010, 03:15

Forum Jump:


Users browsing this thread: 3 Guest(s)