09.07.2014, 15:57
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:
Is there a way to make those variable faster?
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;
}