XP Bar not updating
#2

For that you need a timer or use OnPlayerUpdate but I'd rather recommand a timer since OnPlayerUpdate gets called 100 times per ms

Код:
forward yournameofthetimer();
public yournameofthetimer()
{
     for(new i = 0; i < MAX_PLAYERS; i++)
     {
         new string[30];
         format(string, sizeof(string), "%5d", pInfo[playerid][pXP]);
         PlayerTextDrawSetString(playerid, textdrawhere, string);
     }
     return 1;
}
You'll need to call it with SetTimer on a loop.
Reply


Messages In This Thread
XP Bar not updating - by div - 20.06.2018, 12:51
Re: XP Bar not updating - by XStormiest - 20.06.2018, 12:59
Re: XP Bar not updating - by Ada32 - 20.06.2018, 13:06
Re: XP Bar not updating - by XStormiest - 20.06.2018, 13:08
Re: XP Bar not updating - by div - 20.06.2018, 13:23
Re: XP Bar not updating - by XStormiest - 20.06.2018, 13:28
Re: XP Bar not updating - by div - 20.06.2018, 13:28
Re: XP Bar not updating - by div - 20.06.2018, 13:31
Re: XP Bar not updating - by div - 20.06.2018, 13:51
Re: XP Bar not updating - by XStormiest - 20.06.2018, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)