hi,
sorry but i dont know what i did wrong.
PHP Code:
public player_menu(id)
{
if(get_pcvar_num(g_leach_cvar) == 0) //The Leader has Flag
{
if(!g_player_is_leader[iPlayer] || !get_user_flags(id) & ADMIN_ADMIN)
{
client_print(id,print_chat,"You are not the leader.only the leader has acces to use this command")
return PLUGIN_HANDLED;
}
else
{
showing_menu(id)
}
}
else if(get_pcvar_num(g_leach_cvar) == 1) //Only admin has Flag
{
if(!get_user_flags(id) & ADMIN_ADMIN)
{
client_print(id,print_chat,"Only admin has acces to use this command.")
return PLUGIN_HANDLED;
}
if(get_user_flags(id) & ADMIN_ADMIN)
{
showing_menu(id)
}
}
return PLUGIN_HANDLED
}
i get :
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
C:\Programme\AMX Mod X\pawn\temp720.sma(28) : warning 213: tag mismatch
C:\Programme\AMX Mod X\pawn\temp720.sma(40) : warning 213: tag mismatch
Header size: 1108 bytes
Code size: 6716 bytes
Data size: 2112 bytes
Stack/heap size: 16384 bytes; estimated max. usage=781 cells (3124 bytes)
Total requirements: 26320 bytes
2 Warnings.
Done.
Compilation Time: 0,42 sec
where am i wrong ? oO
__________________