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;
}
if(Menu[playerid] == 1)
{
if(Commands[playerid]==1)
{
if(strval(text)==1)
{
SendClientMessage(playerid, -1, "{00FFFF}Coming Soon");
}
}
return 1;
}
}
return 1;
}
if(Commands[playerid]==1 && Menu[playerid] == 1)
CMD:cmds(playerid, params[])
{
if(Commands[playerid]==1 && Menu[playerid] == 0)
{
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;
}
if(Menu[playerid] == 1)
{
if(Commands[playerid]==1)
{
if(strval(text)==1)
{
SendClientMessage(playerid, -1, "{00FFFF}Coming Soon");
Menu[playerid] = 0;
}
}
return 1;
}
}
return 1;
}
|
I did but when i type /cmds its still not work! they are not given to me the textdrawss
|
|
To start of, where are you setting "Commands[playerid] == 1" to 1?
|
CMD:cmds(playerid, params[])
{
if(Commands[playerid] != 0 && Menu[playerid] == 0)
{
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;
}
|
i can't, 1 of the 2 things isn't set correctly.
And as the 2nd one has been fixed already, it must be the first one, no other option You could try the following: pawn Код:
|
CMD:cmds(playerid, params[])
{
if(Commands[playerid] != 0 && Menu[playerid] != 0)
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;
}
if(Menu[playerid] == 1)
{
if(Commands[playerid]==1)
{
if(strval(text)==1)
{
SendClientMessage(playerid, -1, "{00FFFF}Coming Soon");
Menu[playerid] = 1;
}
if(strval(text)==2)
{
SendClientMessage(playerid, -1, "{00FFFF}Working on it");
}
}
return 0;
}
}
return 1;
}