Why does this return unknown command
#6

Maybe works, i dunno
pawn Код:
CMD:buygun(playerid,params[])
{
    #pragma unused params
    ShowPlayerDialog(playerid,WEP_LIST,DIALOG_STYLE_LIST,"Weapons","Pistols\nAutomatic Weapons\nShotguns\nAssault\nSpecial","Select","Leave");
    return 1;
}
You should add this too if you haven't..
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{

    if(!success) SendClientMessage(playerid,RED,"Server: Unknown command.");
    return 1;
}
Reply


Messages In This Thread
Why does this return unknown command - by mrcoolballs - 05.09.2010, 04:43
Re: Why does this return unknown command - by [UG]Scripter - 05.09.2010, 04:45
Re: Why does this return unknown command - by mrcoolballs - 05.09.2010, 04:46
Re: Why does this return unknown command - by [UG]Scripter - 05.09.2010, 05:00
Re: Why does this return unknown command - by mrcoolballs - 05.09.2010, 05:03
Re: Why does this return unknown command - by mmrk - 05.09.2010, 05:54
Re: Why does this return unknown command - by iggy1 - 05.09.2010, 06:19

Forum Jump:


Users browsing this thread: 3 Guest(s)