How to update textdraw information ?
#1

So i have this
PHP код:
public OnPlayerUpdate(playerid)
{
      new 
string[50];
    
format(stringsizeof(string), "Score:%d"GetPlayerScore(playerid));
    
TextDrawSetString(ScoreTextstring);
    return 
1;

PHP код:
public OnPlayerSpawn(playerid)
{
new 
str[100];
format(strsizeof(str), "Score:%d"GetPlayerScore(playerid));
ScoreText TextDrawCreate(503.500000108.062500"Score:");
TextDrawSetString(ScoreTextstr);
TextDrawLetterSize(ScoreText0.3000001.399999);
TextDrawAlignment(ScoreText1);
TextDrawColor(ScoreText, -1);
TextDrawSetShadow(ScoreText0);
TextDrawSetOutline(ScoreText1);
TextDrawBackgroundColor(ScoreText51);
TextDrawFont(ScoreText2);
TextDrawSetProportional(ScoreText1);
return 
1;

But the score is still the same i have to reconnect to see my real score.
Reply


Messages In This Thread
How to update textdraw information ? - by SandKing94 - 08.08.2014, 11:30
Re: How to update textdraw information ? - by [XST]O_x - 08.08.2014, 11:51
Re: How to update textdraw information ? - by arakuta - 08.08.2014, 11:57
Re: How to update textdraw information ? - by SandKing94 - 08.08.2014, 11:58
Re: How to update textdraw information ? - by Vince - 08.08.2014, 12:07
Re: How to update textdraw information ? - by [XST]O_x - 08.08.2014, 12:20
Re: How to update textdraw information ? - by SandKing94 - 08.08.2014, 13:25
Re: How to update textdraw information ? - by SandKing94 - 08.08.2014, 13:49
Re: How to update textdraw information ? - by caoraivoso3 - 08.08.2014, 13:51
Re: How to update textdraw information ? - by SandKing94 - 08.08.2014, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)