Warning 213: tag mismatch
#1

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

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

I need pplayerd for the person who i am spectating.
Reply
#4

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

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

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

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

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

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)