SendClientMessageToAll not respecting "if" block?
#1

Sup guys!

I got this "if" block:

Код:
if(AccountInfo[playerid][Level] == ADM || OWNER)
       		{
       		    new string[128];
       		    if(AccountInfo[playerid][Level] == ADM)
				{
					format(string, sizeof(string), "ADM {FF0000}%s {FFFFFF}is now online!", nome);
				}
  				else if(AccountInfo[playerid][Level] == OWNER)
		  		{
				  	format(string, sizeof(string), "MASTER ADM {00FF00}%s {FFFFFF}is now online!", nome);
				}
				SendClientMessageToAll(COLOR_WHITE, "------------------------------------------------------------------------------------------");
  				SendClientMessageToAll(COLOR_WHITE, string);
  				SendClientMessageToAll(COLOR_WHITE, "------------------------------------------------------------------------------------------");
       		}
But, the SendClientMessageToAll keeps showing, even if the player is not adm or owner!
P.S: Sorry for messed up indent, code tags screwed it up.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)