14.03.2015, 09:38
Heey
I have a problem:
I put this in OnPlayerUpdate:
That's what it looks like.
But It don't show the textdraw. When I put it in OnPlayerSpawn it shows up but then it don't update.
Yesterday it worked in OnPlayerUpdate.
I have a problem:
I put this in OnPlayerUpdate:
PHP код:
public OnPlayerUpdate(){
new string[128], playerid, Float:ratio = floatdiv(PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
format(string, sizeof(string), "~y~Score: ~w~%d~n~~y~Money: ~w~$%d~n~~y~Kills: ~w~%d~n~~y~Deaths: ~w~%d~n~~y~K/D Ratio: ~w~%0.2f", GetPlayerScore(playerid), GetPlayerMoney(playerid), PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], ratio);
TextDrawSetString(Textdraw[playerid], string);
TextDrawShowForPlayer(playerid, Textdraw[playerid]);
return 1;}
But It don't show the textdraw. When I put it in OnPlayerSpawn it shows up but then it don't update.
Yesterday it worked in OnPlayerUpdate.