Admin cmd, Not authorized help please
#10

pawn Код:
if(PlayerInfo[playerid][pAdmin] < 6)
(
//...code...
)
else SendClientMessage(playerid,-1,"You are not authorized to use this command.");
change all that to
pawn Код:
if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid,-1,"You are not authorized to use this command");
it is just simpler to write. other ways can irritate you
you don't need if/else all the time, you can just directly return something.
and write everything else below that code.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)