Server: Unknown Command
#1

Thanks to ANdy and Spoody for solving it , DELETE TOPIC
Reply
#2

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

Код:
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...");
}
Reply
#4

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

@ Luke Thanks
@ Spooky Still Not Working...

Please help me;../
Reply
#6

Are you using ZCMD or anything else?
Reply
#7

ZCMD
Reply
#8

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+
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)