Score!
#6

You have to update it when you give them score; it doesn't automatically update. Scripts don't 'guess' how you want things to work.

Either hook SetPlayerScore or make a custom function like SetPlayerScoreEx (I'd recommend hooking SetPlayerScore).

Put this before any calls of SetPlayerScore (not every one.. once..)

pawn Код:
stock hook_SetPlayerScore(playerid, score)
{
    if(!IsPlayerConnected(playerid)) return 0;
    SetPlayerScore(playerid, score);

    // Update the TD here using TextDrawSetString
    return 1;
}
#if defined _ALS_SetPlayerScore
    #undef SetPlayerScore
#else
    #define _ALS_SetPlayerScore
#endif
#define SetPlayerScore hook_SetPlayerScore
I.e. just after main() {}

I'd also recommend player-textdraws for this kind of thing.
Reply


Messages In This Thread
Score! - by MrReBzz - 02.11.2012, 08:52
Re: Score! - by iJumbo - 02.11.2012, 08:54
Re: Score! - by MrReBzz - 02.11.2012, 08:59
Re: Score! - by JaKe Elite - 02.11.2012, 09:01
Re: Score! - by MrReBzz - 02.11.2012, 09:18
Re: Score! - by MP2 - 02.11.2012, 09:27
Re: Score! - by MrReBzz - 02.11.2012, 10:44
Re: Score! - by MP2 - 02.11.2012, 11:07
Re: Score! - by [D]ry[D]esert - 02.11.2012, 11:22
Re: Score! - by [HK]Ryder[AN] - 02.11.2012, 11:43

Forum Jump:


Users browsing this thread: 1 Guest(s)