Player Variables are not fast enough
#1

I got a kills textdraw that shows kills variable value ( PlayerInfo[playerid][Kills] ).
I made a stock that updates the kills textdraw and other textdraws, but when i use it under OnPlayerDeath ( PlayerInfo[killerid][Kills]++), and update the textdraws, the kills textdraw value remains the same and update on the next kill to show the previous value, so it's kinda slow, here is the textdraws stock:
pawn Код:
stock TDsUp(playerid)
{
    format(kstr, sizeof kstr, "K: %i", PlayerInfo[playerid][Kills]);
    PlayerTextDrawSetString(playerid, KTD, kstr);
    //rest
    return 1;
}
Is there a way to make those variable faster?
Reply


Messages In This Thread
Player Variables are not fast enough - by Battlezone - 09.07.2014, 15:57
AW: Player Variables are not fast enough - by NaS - 09.07.2014, 16:06
Re: Player Variables are not fast enough - by Battlezone - 09.07.2014, 20:32
AW: Player Variables are not fast enough - by NaS - 09.07.2014, 21:28
Re: Player Variables are not fast enough - by Battlezone - 09.07.2014, 22:50
Re: Player Variables are not fast enough - by Ihateyou - 09.07.2014, 22:50
Re: Player Variables are not fast enough - by Crayder - 10.07.2014, 00:27
AW: Player Variables are not fast enough - by NaS - 10.07.2014, 15:20
Re: Player Variables are not fast enough - by Threshold - 10.07.2014, 15:41
Re: Player Variables are not fast enough - by Battlezone - 10.07.2014, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)