CallRemoteFunction
#2

PHP код:
//In the main filterscript
forward UpdateGamesPlayed(playerid);
public 
UpdateGamesPlayed(playerid)
{
    
Player[playerid][TotalGamesPlayed]++;
    return 
1;
}
//In the gamemode
CMD:execute(playeridparams[])
{
    
CallRemoteFunction("UpdateGamesPlayed""i"playerid);
    return 
1;

Код:
Result: Now the value of Player[playerid][TotalGamesPlayed] which is located in the main filterscript increments by one
Reply


Messages In This Thread
CallRemoteFunction - by KinderClans - 28.05.2018, 21:31
Re: CallRemoteFunction - by FailerZ - 28.05.2018, 21:58
Re: CallRemoteFunction - by KinderClans - 28.05.2018, 22:11

Forum Jump:


Users browsing this thread: 1 Guest(s)