annoying warning
#1

I always get the tag mismatch warning in this line:
pawn Код:
PlayerTextDrawShow(killerid,TeamScoreTD);
what am I doing wrong?
Reply
#2

PlayerTextDrawShow(killerid,TeamScoreTD[killerid]);
Reply
#3

Maybe
Код:
PlayerTextDrawShow(killerid,PlayerText:TeamScoreTD);
Reply
#4

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:
pawn Код:
new TeamScore = 0;
Reply
#5

'TeamScoreTD' not 'TeamScore'
Reply
#6

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).
Reply
#7

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 );
Reply
#8

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)
Reply
#9

Did you define it as
pawn Код:
new
    TeamScoreTD[ /* value_here */ ]
;
Otherwise, it wouldn't give you a warning.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)