25.08.2017, 06:55
Hello everyone i need your help now........ im creating a faction for a command but when i type a /cmds they are not giving to me the menu why?
Is there any wrong of my code?
PHP код:
CMD:cmds(playerid, params[])
{
if(Commands[playerid]==1 && Menu[playerid] == 1)
{
TextDrawShowForPlayer(playerid, Textdraw66);
TextDrawShowForPlayer(playerid, Textdraw67);
TextDrawShowForPlayer(playerid, Textdraw68);
TextDrawShowForPlayer(playerid, Textdraw69);
TextDrawShowForPlayer(playerid, Textdraw70);
TextDrawShowForPlayer(playerid, Textdraw71);
TextDrawShowForPlayer(playerid, Textdraw72);
TextDrawShowForPlayer(playerid, Textdraw73);
TextDrawShowForPlayer(playerid, Textdraw74);
TextDrawShowForPlayer(playerid, Textdraw75);
TextDrawShowForPlayer(playerid, Textdraw76);
TextDrawShowForPlayer(playerid, Textdraw77);
TextDrawShowForPlayer(playerid, Textdraw78);
TextDrawShowForPlayer(playerid, Textdraw79);
TextDrawShowForPlayer(playerid, Textdraw80);
TextDrawShowForPlayer(playerid, Textdraw81);
TextDrawShowForPlayer(playerid, Textdraw82);
TextDrawShowForPlayer(playerid, Textdraw83);
TextDrawShowForPlayer(playerid, Textdraw84);
TextDrawShowForPlayer(playerid, Textdraw85);
TextDrawShowForPlayer(playerid, Textdraw86);
TextDrawShowForPlayer(playerid, Textdraw87);
TextDrawShowForPlayer(playerid, Textdraw88);
TextDrawShowForPlayer(playerid, Textdraw89);
TextDrawShowForPlayer(playerid, Textdraw90);
TextDrawShowForPlayer(playerid, Textdraw91);
TextDrawShowForPlayer(playerid, Textdraw92);
TextDrawShowForPlayer(playerid, Textdraw93);
TextDrawShowForPlayer(playerid, Textdraw94);
TextDrawShowForPlayer(playerid, Textdraw95);
TextDrawShowForPlayer(playerid, Textdraw96);
TextDrawShowForPlayer(playerid, Textdraw97);
TextDrawShowForPlayer(playerid, Textdraw98);
TextDrawShowForPlayer(playerid, Textdraw99);
TextDrawShowForPlayer(playerid, Textdraw100);
TextDrawShowForPlayer(playerid, Textdraw101);
TextDrawShowForPlayer(playerid, Textdraw102);
TextDrawShowForPlayer(playerid, Textdraw103);
TextDrawShowForPlayer(playerid, Textdraw104);
TextDrawShowForPlayer(playerid, Textdraw105);
TextDrawShowForPlayer(playerid, Textdraw106);
return 1;
}
return 1;
}
PHP код:
if(Menu[playerid] == 1)
{
if(Commands[playerid]==1)
{
if(strval(text)==1)
{
SendClientMessage(playerid, -1, "{00FFFF}Coming Soon");
}
}
return 1;
}
}
return 1;
}