Posts: 2,286
Threads: 18
Joined: Jun 2010
Quote:
Originally Posted by [D]ry[D]esert
i think this is Long Way ..
I Make this and its Work and short (Just for More info)
pawn Код:
Textdraw1 = TextDrawCreate(414.000000, 424.000000, "Kills:~r~"); TextDrawBackgroundColor(Kills, 16711935); TextDrawFont(Kills, 2); TextDrawLetterSize(Kills, 0.559999, 2.299999); TextDrawColor(Kills, 65535); TextDrawSetOutline(Kills, 1); TextDrawSetProportional(Kills, 1);
pawn Код:
public OnPlayerSpawn(playerid) { TextDrawShowForPlayer( playerid, Kills); }
pawn Код:
OnPlayerUpdate(playerid) { new str[120]; format(str, sizeof(str),"Kills : %d",AccountInfo[playerid][Kills]); TextDrawSetString(Kills, str );
|
Ever heard of code optimization? Oh wait, this is SA:MP, of course you haven't. Why would someone use OnPlayerUpdate and call a function every half a second if he can call it only when needed (OnPlayerDeath) ?!