13.06.2013, 09:04
Quote:
this a help section you need to provide some code !
at least make the textdraw! then save them into a player variable pawn Code:
|
Why bother using "return 1;" on UpdatePlayerXP?
pawn Code:
new pPlayerXp[MAX_PLAYERS];
#define GivePlayerXP(%0,%1) pPlayerXp[%0] += %1
#define RemovePlayerXP(%0,%1) pPlayerXp[%0] -= %1
#define ResetPlayerXP(%0) pPlayerXp[%0] = 0
stock UpdatePlayerXP(playerid)
{
new Str[20];
format(Str, sizeof Str, "XP: %d", pPlayerXp[playerid]);
TextDrawSetString(YourTextdrawID, Str);
}