money=score
#3

Quote:
Originally Posted by SpiderPork
pawn Код:
// On top
forward ScoreUpdate();

// OnGameModeInit/FilterScriptInit
SetTimer("ScoreUpdate", 1000, 1);

// Outside of any callbacks/functions
public ScoreUpdate()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            SetPlayerScore(playerid, GetPlayerMoney(playerid));
        }
    }
}
Should be
pawn Код:
SetPlayerScore(i, GetPlayerMoney(i));
Reply


Messages In This Thread
money=score - by addysnow1 - 11.10.2009, 09:01
Re: money=score - by SpiderPork - 11.10.2009, 09:29
Re: money=score - by [eLg]Timmy - 11.10.2009, 09:32
Re: money=score - by SpiderPork - 11.10.2009, 09:55

Forum Jump:


Users browsing this thread: 1 Guest(s)