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: Tag Mismatch (
/showthread.php?tid=619610)
Tag Mismatch -
NeXoR - 20.10.2016
Код:
warning 213: tag mismatch
PHP код:
if(!IsAllowed(playerid, 1)) 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.")
Re: Tag Mismatch -
Dayrion - 20.10.2016
Split in two lines.
Re: Tag Mismatch -
SickAttack - 20.10.2016
That turns in to:
if(!PlayerInfo[playerid][pAdmin] >= 1)
Is that executable?
Re: Tag Mismatch -
NeXoR - 20.10.2016
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