SA-MP Forums Archive
Some Warnings - 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: Some Warnings (/showthread.php?tid=436462)



Some Warnings - DAVIDXP - 11.05.2013

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?


Re: Some Warnings - TomatoRage - 11.05.2013

replace it with this i'm not sure but try

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



Re: Some Warnings - DAVIDXP - 11.05.2013

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 );



Re: Some Warnings - TomatoRage - 11.05.2013

what do you want to make



Re: Some Warnings - MP2 - 11.05.2013

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.


Re : Some Warnings - Rayan_black - 11.05.2013

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



Re: Re : Some Warnings - DAVIDXP - 11.05.2013

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


Re: Some Warnings - feartonyb - 11.05.2013

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


Re: Some Warnings - ReVo_ - 11.05.2013

#define ShowAllTextDrawsForPlayer TextDrawShowForAll


Change "playerid" w/ the textdraw id.