Stock function
#6

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Actually, you would be better off using a macro for this..
pawn Код:
#define AdminCheck(%0,%1) if(!IsPlayerAdmin((%0)) && pData[(%0)][Level] < (%1))\
    return SendClientMessage((%0), ERROR, "Error: {FFFFFF}You do not have permission to use this command!");
Using a stock function, no matter what it returns, it won't really 'break' the code, it will just return a value and continue... macros act as a 'text' replacement.
Awesome! Thanks
Reply


Messages In This Thread
Stock function - by Derexi - 21.08.2014, 14:17
Re: Stock function - by Stinged - 21.08.2014, 14:22
Re: Stock function - by Kyance - 21.08.2014, 14:23
Re: Stock function - by Derexi - 21.08.2014, 14:27
Re: Stock function - by Threshold - 21.08.2014, 14:29
Re: Stock function - by Derexi - 21.08.2014, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)