Textdraw
#1

So Im getting tag mismatch for these following lines

Код:
TextDrawShowForPlayer(playerid, LevelText[playerid]);
and
pawn Код:
forward tdscoretimer(playerid);
public tdscoretimer(playerid)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
             TextDrawSetString(LevelText[i], pInfo[playerid][pLevel]);
        }
    }
    return 1;
}
this line > TextDrawSetString(LevelText[i], pInfo[playerid][pLevel]);
Reply
#2

The function is called TextDrawSetString, not TextDrawSetInteger. That should be a clear hint.
Reply
#3

the second parameter should be a string.

Код:
new txt[10];
format(txt,10,"%s", pInfo[playerid][pLevel]);
TextDrawSetString(LevelText[i],txt);
Reply
#4

And make sure you have Text3D:LevelText[MAX_PLAYERS];
Reply
#5

rospar, im getting a tag mismatch on this line > TextDrawSetString(LevelText[i],txt);
Reply
#6

im currently using new PlayerText:LevelText[MAX_PLAYERS];
Reply
#7

Quote:
Originally Posted by Dziugsas
Посмотреть сообщение
And make sure you have Text3D:LevelText[MAX_PLAYERS];
you mean Text:LevelText[MAX_PLAYERS];

if you use PlayerText:LevelText[MAX_PLAYERS]
then you should use the PlayerTextDraw Function
Reply
#8

No , Text3D:LevelText[MAX_PLAYERS];
Reply
#9

Text3D is for 3D text labels... not textdraws.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)