Tag Mismatch
#1

Код:
warning 213: tag mismatch
PHP код:
if(!IsAllowed(playerid1)) return NoAuth(playerid); 
PHP код:
#define IsAllowed(%1,%2) PlayerInfo[%1][pAdmin] >= %2 
PHP код:
#define NoAuth(%1) SendClientMessage(%1, COLOR_GREY, "You are not authorized to use this command.") 
Reply
#2

Split in two lines.
Reply
#3

That turns in to:

if(!PlayerInfo[playerid][pAdmin] >= 1)

Is that executable?
Reply
#4

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
That turns in to:

if(!PlayerInfo[playerid][pAdmin] >= 1)

Is that executable?
Fair enough, I realized it on my own a while after, turned to
PHP код:
#define IsAllowed(%1,%2) (PlayerInfo[%1][pAdmin] >= %2) 
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)