PDA

View Full Version : Some Warnings


DAVIDXP
11/05/2013, 03:15 PM
Hi, I have some warning, these:

(601) : warning 213: tag mismatch
(818) : warning 213: tag mismatch
(1220) : warning 213: tag mismatch
(1222) : warning 213: tag mismatch

On these linies:
601
if ( Joined[ playerid ] == true )
818
if ( Joined[ playerid ] == true )
1220
if ( Joined[ playerid ] == true )
1222
ShowAllTextDrawsForPlayer( playerid );
And defines:
Joined:
new Joined[MAX_PLAYERS];
ShowAlltextDrawsForPlayer
#define ShowAllTextDrawsForPlayer TextDrawShowForAll
Ideas?

TomatoRage
11/05/2013, 03:21 PM
replace it with this i'm not sure but try


if ( Joined[ playerid ] == 1)

DAVIDXP
11/05/2013, 03:23 PM
replace it with this i'm not sure but try


if ( Joined[ playerid ] == 1)


You are not sure but it works on first three linies, what should I make with this?:

ShowAllTextDrawsForPlayer( playerid );

TomatoRage
11/05/2013, 03:40 PM
what do you want to make
???

MP2
11/05/2013, 03:49 PM
1. 'Joined' is not a bool - add the bool: tag.
2. You've defined ShowAllTextDrawsForPlayer as TextDrawShowForPlayer. This is your code:


Before Substitution:

ShowAllTextDrawsForPlayer( playerid );


After Substitution:

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.

Rayan_black
11/05/2013, 03:56 PM
//It should be like this:
TextDrawShowForAll(text) // text = textdraw's name.

DAVIDXP
11/05/2013, 04:18 PM
//It should be like this:
TextDrawShowForAll(text) // text = textdraw's name.


Don't work.

feartonyb
11/05/2013, 04:27 PM
Add ; at the end o its like:
TextDrawShowForAll(text);

ReVo_
11/05/2013, 06:39 PM
#define ShowAllTextDrawsForPlayer TextDrawShowForAll


Change "playerid" w/ the textdraw id.