need help with tag mistake - 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: need help with tag mistake (
/showthread.php?tid=346193)
need help with tag mistake -
mineralo - 27.05.2012
Код:
D:\Programs\proecte ne terminate\samp\gamemodes\rpg.pwn(14359) : warning 213: tag mismatch
pawn Код:
forward ShowPlayerAllTextDraw(playerid);
public ShowPlayerAllTextDraw(playerid)
{
if(TextDrawMoney[playerid] == 0) // line:14359
{
CreateAllTextDrawForPlayer(playerid);
}
else
{
TextDrawShowForPlayer(playerid,TextDrawMoney[playerid]);
ShowProgressBarForPlayer(playerid, pee[playerid]);
TextDrawShowForPlayer(playerid,TextDrawPos[playerid]);
}
return 1;
}
any ideas?
Re: need help with tag mistake -
ViniBorn - 27.05.2012
You put Text: ?
Ex:
pawn Код:
Text:TextDrawMoney[MAX_PLAYERS];
Re: need help with tag mistake -
mineralo - 27.05.2012
yes, I forgot to mention that
Re: need help with tag mistake -
ViniBorn - 27.05.2012
What is the exact line ?
Re: need help with tag mistake -
mineralo - 27.05.2012
I said, that when checking if the textdraw is = 0
Код:
if(TextDrawMoney[playerid] == 0) // line:14359
Re: need help with tag mistake -
mineralo - 27.05.2012
how I can compare if text draw is null?
Re: need help with tag mistake -
ViniBorn - 27.05.2012
INVALID_TEXT_DRAW
Re: need help with tag mistake -
mineralo - 27.05.2012
mmm... I have other question too also on text draw, how I can use this native?
I mean how to declaraty it, if is same
Код:
native PlayerText:CreatePlayerTextDraw(playerid, Float:x, Float:y, text[]);
native PlayerTextDrawShow(playerid, PlayerText:text);
native PlayerTextDrawHide(playerid, PlayerText:text);
native PlayerTextDrawSetString(playerid, PlayerText:text, string[]);
Re: need help with tag mistake -
ViniBorn - 27.05.2012
pawn Код:
new PlayerText:Testing = CreatePlayerTextDraw(playerid, 250.0, 250.0, "TextDrawTest");
PlayerTextDrawShow(playerid, Testing);
PlayerTextDrawHide(playerid, Testing);
PlayerTextDrawSetString(playerid, Testing, "Test2");
Re: need help with tag mistake -
mineralo - 27.05.2012
thanks you