28.05.2018, 21:58
PHP код:
//In the main filterscript
forward UpdateGamesPlayed(playerid);
public UpdateGamesPlayed(playerid)
{
Player[playerid][TotalGamesPlayed]++;
return 1;
}
//In the gamemode
CMD:execute(playerid, params[])
{
CallRemoteFunction("UpdateGamesPlayed", "i", playerid);
return 1;
}
Код:
Result: Now the value of Player[playerid][TotalGamesPlayed] which is located in the main filterscript increments by one