Unknown Command ??!
#6

Quote:
Originally Posted by kamiliuxliuxliux
Посмотреть сообщение
I'm not sure, but return in ZCMD should always contain 1. You use like return SendClientMessage.... Maybe try sending a message and then return 1.
This doesn't matter, returning 0 or not returning anything at all will show the command as executed unsuccessfully. (Giving the "unknown cmd"-message)

Also meaning instead of this line:
pawn Код:
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_RED, "Command not found on the server! /help");
You can just use this:
pawn Код:
if(PlayerInfo[playerid][pAdmin] < 5) return 0;
To give the "unknown"-message.

Regarding the actual problem, im not sure why it happens, just thought i'd say that.
Reply


Messages In This Thread
Unknown Command ??! - by nezo2001 - 21.02.2015, 11:55
Re: Unknown Command ??! - by kamiliuxliuxliux - 21.02.2015, 12:03
Re: Unknown Command ??! - by nezo2001 - 21.02.2015, 12:05
Re: Unknown Command ??! - by kamiliuxliuxliux - 21.02.2015, 12:10
Re: Unknown Command ??! - by nezo2001 - 21.02.2015, 12:13
Re: Unknown Command ??! - by CalvinC - 21.02.2015, 13:07
Re: Unknown Command ??! - by nezo2001 - 21.02.2015, 13:24

Forum Jump:


Users browsing this thread: 2 Guest(s)