Textdraw score
#6

Quote:
Originally Posted by nejc001
Посмотреть сообщение
Uhm, it says error 035: argument type mismatch for
Код:
 GetPlayerScore(i)
Notice that the function says 'TextDrawSet[b]String[/u]', while GetPlayerScore returns a integer value.
What you need to do, is formatting a string to output the value of GetPlayerScore:

pawn Код:
new szScore[ 20 ]; //19 decimals is more than enough, probably..
format(szScore, sizeof(szScore), "%i", GetPlayerScore(i)); // %d and %i is the same
TextDrawSetString(/*your textdraw*/, szScore);
Reply


Messages In This Thread
Textdraw score - by Jay. - 10.05.2010, 18:55
Re: Textdraw score - by [HiC]TheKiller - 10.05.2010, 19:29
Re: Textdraw score - by Jay. - 10.05.2010, 19:33
Re: Textdraw score - by nejc001 - 10.10.2010, 10:38
Re: Textdraw score - by WillyP - 10.10.2010, 10:41
Re: Textdraw score - by LarzI - 10.10.2010, 11:47
Re: Textdraw score - by Jeffry - 10.10.2010, 11:58

Forum Jump:


Users browsing this thread: 1 Guest(s)