Textdraw - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw (
/showthread.php?tid=523862)
Textdraw -
Mriss - 04.07.2014
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]);
Re: Textdraw -
Vince - 04.07.2014
The function is called TextDrawSetString, not TextDrawSetInteger. That should be a clear hint.
AW: Textdraw -
rospar - 04.07.2014
the second parameter should be a string.
Код:
new txt[10];
format(txt,10,"%s", pInfo[playerid][pLevel]);
TextDrawSetString(LevelText[i],txt);
Re: Textdraw -
Dziugsas - 04.07.2014
And make sure you have Text3D:LevelText[MAX_PLAYERS];
Re: Textdraw -
Mriss - 04.07.2014
rospar, im getting a tag mismatch on this line > TextDrawSetString(LevelText[i],txt);
Re: Textdraw -
Mriss - 04.07.2014
im currently using new PlayerText:LevelText[MAX_PLAYERS];
AW: Re: Textdraw -
rospar - 04.07.2014
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
Re: Textdraw -
Dziugsas - 04.07.2014
No , Text3D:LevelText[MAX_PLAYERS];
Re: Textdraw -
Threshold - 04.07.2014
Text3D is for 3D text labels... not textdraws.