20.06.2018, 12:59
For that you need a timer or use OnPlayerUpdate but I'd rather recommand a timer since OnPlayerUpdate gets called 100 times per ms
You'll need to call it with SetTimer on a loop.
Код:
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; }