15.03.2012, 12:32
Well i tried making a code but i fail can you help me with it please..i won't tell my commands ofc..Just the way i made it..
Whenever i type /help account or anything..
this come up even i typed it right
/help [section] Account, General, Donator, Phone, Faction, Job, Vehicle, House, Bank, Animations, Business
Please help me !
pawn Код:
command(help, playerid, params[])
{
new text[32];
if(sscanf(params,"s[32]",text))
if (strfind("ACCOUNT", text, true) != -1)
{
SendClientMessage(playerid, -1, "Account Help:");
SendClientMessage(playerid, -1, "/changepass, /playerwarns, /stats, /changespawn, /myadminrecord");
}
else if (strfind("GENERAL", text, true) != -1)
{
Commands
}
else if (strfind("DONATOR", text, true) != -1)
{
if(Player[playerid][VipRank] >= 1)
{
Commands
}
if(Player[playerid][VipRank] >= 2)
{
Commands
}
else
{
Commands
}
}
else if (strfind("PHONE", text, true) != -1)
{
Commands
}
else if (strfind("FACTION", text, true) != -1)
{
return cmd_factionhelp(playerid, params);
}
else if (strfind("HOUSE", text, true) != -1)
{
Commands
}
else if (strfind("JOB", text, true) != -1)
{
if(Player[playerid][Job] >= 1)
{
switch(Jobs[Player[playerid][Job]][JobType])
{
case 1:
{
Commands
}
case 2:
{
Commands
}
case 3:
{
return 1;
}
case 4:
{
return 1;
}
case 5:
{
return 1;
}
case 6:
{
Commands
}
case 7:
{
return 1;
}
}
}
}
else if (strfind("VEHICLE", text, true) != -1)
{
Commands
}
else if (strfind("BANK", text, true) != -1)
{
Commands
}
else if (strfind("ANIMATIONS", text, true) != -1)
{
Commands
}
else if (strfind("BUSINESS", text, true) != -1)
{
Commands
switch(Businesses[Player[playerid][InBusiness]][bType])
{
My Commands
}
return 1;
}
else
{
SendClientMessage(playerid, -1, "{33FF33}Usage: /help [section]");
SendClientMessage(playerid, -1, "Account, General, Donator, Phone, Faction, Job, Vehicle, House, Bank, Animations, Business");
}
return true;
}
this come up even i typed it right
/help [section] Account, General, Donator, Phone, Faction, Job, Vehicle, House, Bank, Animations, Business
Please help me !