08.08.2014, 11:30
So i have this
But the score is still the same i have to reconnect to see my real score.
PHP код:
public OnPlayerUpdate(playerid)
{
new string[50];
format(string, sizeof(string), "Score:%d", GetPlayerScore(playerid));
TextDrawSetString(ScoreText, string);
return 1;
}
PHP код:
public OnPlayerSpawn(playerid)
{
new str[100];
format(str, sizeof(str), "Score:%d", GetPlayerScore(playerid));
ScoreText = TextDrawCreate(503.500000, 108.062500, "Score:");
TextDrawSetString(ScoreText, str);
TextDrawLetterSize(ScoreText, 0.300000, 1.399999);
TextDrawAlignment(ScoreText, 1);
TextDrawColor(ScoreText, -1);
TextDrawSetShadow(ScoreText, 0);
TextDrawSetOutline(ScoreText, 1);
TextDrawBackgroundColor(ScoreText, 51);
TextDrawFont(ScoreText, 2);
TextDrawSetProportional(ScoreText, 1);
return 1;
}