So, basically, all these formats you've used doesn't make any big differente to the compiler, i'm right? The best way is use the original native instead of making new methods like macro, stock, array?
Ah, about this
PHP Code:
if(get_user_flags(id) & ADMIN_KICK)
{
client_print(id,print_chat,"[AMXX]: You have not enough money to buy this!")
}
else if(get_user_flags(id) & ADMIN_SLAY)
{
client_print(id,print_chat,"[AMXX]: You have not enough money to buy this! Write /admin for buy admin privilegies")
}
else
{
client_print(id,print_chat,"[AMXX]: You have not enough money to buy this! Write /vip for buy vip privilegies")
}
This should be
PHP Code:
switch(get_user_flags(id))
{
case ADMIN_KICK: client_print(id,print_chat,"[AMXX]: You have not enough money to buy this!")
case ADMIN_SLAY: client_print(id,print_chat,"[AMXX]: You have not enough money to buy this! Write /admin for buy admin privilegies")
default: client_print(id,print_chat,"[AMXX]: You have not enough money to buy this! Write /vip for buy vip privilegies")
}
Or a stock, because I have that format so much times, like 15-20 I think.
PHP Code:
stock SendUserAdv(id)
{
switch(get_user_flags(id))
{
case ADMIN_KICK: client_print(id,print_chat,"[AMXX]: You have not enough money to buy this!")
case ADMIN_SLAY: client_print(id,print_chat,"[AMXX]: You have not enough money to buy this! Write /admin for buy admin privilegies")
default: client_print(id,print_chat,"[AMXX]: You have not enough money to buy this! Write /vip for buy vip privilegies")
}
}
Edit: off-topic LUL, now I understand your signature, haha gj
__________________