annoying warning - 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: annoying warning (
/showthread.php?tid=396884)
annoying warning -
nuriel8833 - 02.12.2012
I always get the tag mismatch warning in this line:
pawn Код:
PlayerTextDrawShow(killerid,TeamScoreTD);
what am I doing wrong?
Re: annoying warning -
[HK]Ryder[AN] - 02.12.2012
PlayerTextDrawShow(killerid,TeamScoreTD[killerid]);
Re: annoying warning -
[MM]Eminem - 02.12.2012
Maybe
Код:
PlayerTextDrawShow(killerid,PlayerText:TeamScoreTD);
Re: annoying warning -
nuriel8833 - 02.12.2012
Quote:
Originally Posted by [HK]Ryder[AN]
PlayerTextDrawShow(killerid,TeamScoreTD[killerid]);
|
yea but the team score is global,it has no [playerid] or MAX_PLAYERS tag:
Re: annoying warning -
Peach - 02.12.2012
'TeamScoreTD' not 'TeamScore'
Re: annoying warning -
Konstantinos - 02.12.2012
The second parameter should be a string (playerid, PlayerText:text), not integer as you're using.
EDIT: And no, you'll need only the name of the string. The tag shouldn't be there (before the text).
Re: annoying warning -
[HK]Ryder[AN] - 02.12.2012
you are trying to show TeamScoreTD not TeamScore
it must be new PlayerText:TeamScoreTD
btw i gave wrong code..it should be
PlayerTextDrawShow(killerid,PlayerText:TeamScoreTD );
Re: annoying warning -
nuriel8833 - 02.12.2012
Quote:
Originally Posted by Dwane
The second parameter should be a string (playerid, PlayerText:text), not integer as you're using.
|
It is a string (Team 1 Score: %d)
Re: annoying warning -
Konstantinos - 02.12.2012
Did you define it as
pawn Код:
new
TeamScoreTD[ /* value_here */ ]
;
Otherwise, it wouldn't give you a warning.
Re: annoying warning -
nuriel8833 - 02.12.2012
Quote:
Originally Posted by Dwane
Did you define it as
pawn Код:
new TeamScoreTD[ /* value_here */ ] ;
Otherwise, it wouldn't give you a warning.
|
nope I didnt