06.08.2016, 09:18
Hey!
So i have this in my gamemode:
and this is in the FS:
What i want to do is, that i can change value in FS, so that parameter 2 in function would be value.
Somehow my logic dosn't help me, adding 2 params gives me error. Im probably missing something really simple.
So i have this in my gamemode:
Код:
forward SetPlayerVarMoney(playerid); public SetPlayerVarMoney(playerid) { PlayerInfo[playerid][pCash] += 20; }
Код:
CallRemoteFunction("SetPlayerVarMoney", "i", playerid);
Код:
So it could be CallRemoteFunction("SetPlayerVarMoney", "i", 100);