SA-MP Forums Archive
Server: Unknown Command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server: Unknown Command (/showthread.php?tid=307344)



[SOLVED] Server: Unknown Command - iChronic - 30.12.2011

Thanks to ANdy and Spoody for solving it , DELETE TOPIC


Re: Server: Unknown Command - 98rp - 30.12.2011

I can help you with it PM me your script or PM me your TV Details.


Re: Server: Unknown Command - iChronic - 30.12.2011

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new CMD[256];
new idx;
CMD = strtok(cmdtext, idx);
//=================================================================================================================================
return SendClientMessage(playerid,COLOR_RED,"Error! Command doesn't Exist please check /teles , /cmds...");
}



Re: Server: Unknown Command - Spooky - 30.12.2011

change return 0; to return SendClientMessage(playerid, 0xFFFFFFFF,"SERVER:UNKOWN COMMAND.");


Re: Server: Unknown Command - iChronic - 30.12.2011

@ Luke Thanks
@ Spooky Still Not Working...

Please help me;../


Re: Server: Unknown Command - Spooky - 30.12.2011

Are you using ZCMD or anything else?


Re: Server: Unknown Command - iChronic - 30.12.2011

ZCMD


Re: Server: Unknown Command - Spooky - 30.12.2011

Lol then it will not work like this

you have to do

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) return SendClientMessage(playerid, COLOR_WHITE, "SERVER: UNKNOWN COMMAND.");   //When Wrong command is entered
    return 1;
}
I think it should deserve a REp+


Re: Server: Unknown Command - Andi_Evandy - 30.12.2011

ZCMD:
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{  
    if (!success)
    {
        SendClientMessage(playerid,COLOR_RED,"Error! Command doesn't Exist please check /teles , /cmds...");
    }
    return 1;
}



Re: Server: Unknown Command - iChronic - 30.12.2011

Love You Buddys,
Thanks Solved + rep.. For both of You,..