SA-MP Forums Archive
Warning 213: tag mismatch - 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: Warning 213: tag mismatch (/showthread.php?tid=443082)



Warning 213: tag mismatch - Affan - 10.06.2013

Idk what is the problem here.

pawn Код:
if(pplayerid == PlayerInfo[pplayerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, ""COL_RED"[S]: "COL_WHITE"You cannot spectate an admin.");



Re: Warning 213: tag mismatch - IceBilizard - 10.06.2013

pawn Код:
if(playerid == PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, ""COL_RED"[S]: "COL_WHITE"You cannot spectate an admin.");



Re: Warning 213: tag mismatch - Affan - 10.06.2013

I need pplayerd for the person who i am spectating.


Re: Warning 213: tag mismatch - IceBilizard - 10.06.2013

pawn Код:
if(pplayerid == PlayerInfo[pplayerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED, "[S]: You cannot spectate an admin.");



Re: Warning 213: tag mismatch - SilverKiller - 10.06.2013

Why not just :

pawn Код:
if(PlayerInfo[pplayerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, ""COL_RED"[S]: "COL_WHITE"You cannot spectate an admin.");
This should work out.


Respuesta: Warning 213: tag mismatch - Parka - 10.06.2013

pawn Код:
if( PlayerInfo[ pplayerid ][ pAdmin ] > 1) return SendClientMessage(playerid, COLOR_WHITE, ""COL_RED"[S]: "COL_WHITE"You cannot spectate an admin.");

//to place so verify that the variable PlayerInfo pAdmin if administrator may not spectar.



Re: Warning 213: tag mismatch - Aly - 10.06.2013

What are you doing with this:
pawn Код:
if(pplayerid == PlayerInfo[pplayerid][pAdmin] < 1)



Re: Respuesta: Warning 213: tag mismatch - SilverKiller - 10.06.2013

Quote:
Originally Posted by Parka
Посмотреть сообщение
pawn Код:
if( PlayerInfo[ pplayerid ][ pAdmin ] > 1) return SendClientMessage(playerid, COLOR_WHITE, ""COL_RED"[S]: "COL_WHITE"You cannot spectate an admin.");
I already said that..

@Aly he is checking if pplayerid is an admin.


Respuesta: Re: Respuesta: Warning 213: tag mismatch - Parka - 10.06.2013

Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
Why not just :

pawn Код:
if(PlayerInfo[pplayerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, ""COL_RED"[S]: "COL_WHITE"You cannot spectate an admin.");



This should work out.
your code is wrong it mistook operators.
Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
I already said that..
not since my operator is >

Not confused friend.


Re: Respuesta: Warning 213: tag mismatch - IceBilizard - 10.06.2013

Quote:
Originally Posted by Parka
Посмотреть сообщение
pawn Код:
if( PlayerInfo[ pplayerid ][ pAdmin ] > 1) return SendClientMessage(playerid, COLOR_WHITE, ""COL_RED"[S]: "COL_WHITE"You cannot spectate an admin.");

//to place so verify that the variable PlayerInfo pAdmin if administrator may not spectar.
use this one