Unknow Command,simple cmd.
#1

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/help"cmdtexttrue10) == 0)
    {
        
SendClientMessage(playerid0x33AA33AA"|_____________________________GENERAL HELP_______________________________________|");
        
SendClientMessage(playerid0xFFFFFFAA"[CHAT]:/b /g(OOC) /low /s(Shout) /d(Donator) /w(Whisper) /me /do /pm");
        
SendClientMessage(playerid0xFFFFFFAA"[IGHELP]:/admins /helpers /ask /report");
        
SendClientMessage(playerid0xFFFFFFAA"[ATM]:/withdraw /deposit /checkbalance");
        
SendClientMessage(playerid0xFFFFFFAA"[GENERAL]:/enter(To enter places) /exit(to exit places) /animhelp /coin /windows");
        
SendClientMessage(playerid0xFFFFFFAA"[GENERAL]:/stats /vampirehelp /admins /v /wolfhelp /collegehelp /cellphonehelp /dice");
        
SendClientMessage(playerid0xFFFFFFAA"[GENERAL]:/hh /househelp /charity /pay /clearchat /dropgun /buyitems /buyaccessories");
        
SendClientMessage(playerid0xFFFFFFAA"[JOBS]: /fishinghelp /teaherhelp");
        
SendClientMessage(playerid0x33AA33AA"|________________________________________________________________________________|");
        return 
1;
    }
    else if (
strcmp("/dropgun"cmdtexttrue10) == 0)
    {
        new 
weaponid GetPlayerWeapon(playerid);
        
GivePlayerWeapon(playerid,weaponid,-1);
         return 
1;
    }
    else if (
strcmp("/clearchat"cmdtexttrue10) == 0)
    {
        
SendClientMessage(playerid,0xFFFFFF,"");
        
SendClientMessage(playerid,0xFFFFFF,"");
        
SendClientMessage(playerid,0xFFFFFF,"");
        
SendClientMessage(playerid,0xFFFFFF,"");
        
SendClientMessage(playerid,0xFFFFFF,"");
        
SendClientMessage(playerid,0xFFFFFF,"");
        
SendClientMessage(playerid,0xFFFFFF,"");
        
SendClientMessage(playerid,0xFFFFFF,"");
        
SendClientMessage(playerid,0xFFFFFF,"");
        
SendClientMessage(playerid,0xFFFFFF,"");
        return 
1;
    }
    else if (
strcmp("/cellphonehelp"cmdtexttrue10) == 0)
    {
        
SendClientMessage(playerid0x33AA33AA"|___________CELLPHONE HELP________|");
        
SendClientMessage(playerid0xFFFFFFAA"[CELLPHONEHELP]:/call /hangup");
        
SendClientMessage(playerid0x33AA33AA"|_________________________________|");
        return 
1;
    }
    else if (
strcmp("/teacherhelp"cmdtexttrue10) == 0)
    {
        
SendClientMessage(playerid0x33AA33AA"|_____________TEACHER HELP__________|");
         
SendClientMessage(playerid0xFFFFFFAA"[TEACHERHELP]:/startclass /endclass");
          
SendClientMessage(playerid0x33AA33AA"|___________________________________|");
           return 
1;
    }
    if (
strcmp("/househelp"cmdtexttrue10) == 0)
    {
           
SendClientMessage(playerid0x33AA33AA"|_______________HOUSE HELP______________________|");
        
SendClientMessage(playerid0xFFFFFFAA"[HOUSEHELP]:/enter /exit /buyhouse /sellhouse");
        
SendClientMessage(playerid0x33AA33AA"|_______________________________________________|");
        return 
1;
    }
    if (
strcmp("/charity"cmdtexttrue10) == 0)
    {
        
ShowPlayerDialog(playerid,100,DIALOG_STYLE_INPUT"Charity""How much would you like to charity""Charity""Close");
        return 
1;
    }
    return 
0;

I don't know why /help and other cmds and not working.
Reply


Messages In This Thread
Unknow Command,simple cmd. - by TaLhA XIV - 16.08.2012, 15:54
Re: Unknow Command,simple cmd. - by Admigo - 16.08.2012, 15:59
Re: Unknow Command,simple cmd. - by Jarnu - 16.08.2012, 16:06
Re: Unknow Command,simple cmd. - by Admigo - 16.08.2012, 16:14
Re: Unknow Command,simple cmd. - by TaLhA XIV - 16.08.2012, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)