Please check this code out for me please
#6

Код:
CMD:setadmin(playerid,params[])
{
	new id,level;
	if(IsPlayerAdmin(playerid))
	{
	    if(sscanf(params,"ud",id,level))
		{
	        return SendClientMessage(playerid, 0xFF0000AA, "Usage: /givecash <playerid/name> <amount>");
		}
		else
		{
		    if(level > 5)) return test(playerid);
			}
		    else
		    {
					new INI:File = INI_Open(UserPath(id));
					INI_WriteInt(File,"Admin",level);
					INI_Close(File);
			}
		}
	}
	else
	{
	SendClientMessage(playerid, COL_RED, "That id is not connected");
	}
}
ok this what i did but i am getting error
Код:
 if(level > 5)) return test(playerid);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)