14.08.2015, 19:34
Put the enum (but not the array itself) in a separate include file and include it in any and all scripts you want to use it in. Then you can write a function in your main script like:
Then, in your filterscript you do this (for example):
It's probably not going to work for strings, however.
pawn Код:
public GetPlayerInfo(playerid, pInfo:info)
return PlayerInfo[playerid][info];
pawn Код:
CallRemoteFunction("GetPlayerInfo", "dd", playerid, pCash);