Some Warnings
#1

Hi, I have some warning, these:
pawn Код:
(601) : warning 213: tag mismatch
(818) : warning 213: tag mismatch
(1220) : warning 213: tag mismatch
(1222) : warning 213: tag mismatch
On these linies:
601
pawn Код:
if ( Joined[ playerid ] == true )
818
pawn Код:
if ( Joined[ playerid ] == true )
1220
pawn Код:
if ( Joined[ playerid ] == true )
1222
pawn Код:
ShowAllTextDrawsForPlayer( playerid );
And defines:
Joined:
pawn Код:
new Joined[MAX_PLAYERS];
ShowAlltextDrawsForPlayer
pawn Код:
#define ShowAllTextDrawsForPlayer TextDrawShowForAll
Ideas?
Reply
#2

replace it with this i'm not sure but try

pawn Код:
if ( Joined[ playerid ] == 1)
Reply
#3

Quote:
Originally Posted by TomatoRage
Посмотреть сообщение
replace it with this i'm not sure but try

pawn Код:
if ( Joined[ playerid ] == 1)
You are not sure but it works on first three linies, what should I make with this?:
pawn Код:
ShowAllTextDrawsForPlayer( playerid );
Reply
#4

what do you want to make
Reply
#5

1. 'Joined' is not a bool - add the bool: tag.
2. You've defined ShowAllTextDrawsForPlayer as TextDrawShowForPlayer. This is your code:


Before Substitution:
pawn Код:
ShowAllTextDrawsForPlayer( playerid );
After Substitution:
pawn Код:
TextDrawShowForAll( playerid );
'playerid' isn't a textdraw ID*.

* Well, it could be, as it's just a number, but it's won't give you the intended result.
Reply
#6

pawn Код:
//It should be like this:
TextDrawShowForAll(text) // text = textdraw's name.
Reply
#7

Quote:
Originally Posted by Rayan_black
Посмотреть сообщение
pawn Код:
//It should be like this:
TextDrawShowForAll(text) // text = textdraw's name.
Don't work.
Reply
#8

Add ; at the end o its like:
TextDrawShowForAll(text);
Reply
#9

#define ShowAllTextDrawsForPlayer TextDrawShowForAll


Change "playerid" w/ the textdraw id.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)