Server unknown command, dafuq -
BigAl - 18.08.2012
Hey, I haven't got any errors and im using ZCMD and it just says server:unknown command once i type the right command...
pawn Код:
COMMAND:heal(playerid,params[])
{
new targetid;
if(sscanf(params,"u",targetid)) return SendClientMessage(playerid, C_RED, "USAGE: /heal [playerid/name]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,C_RED, "Player isn't connected!");
//if(playerid == targetid) return SendClientMessage(playerid, C_RED, "You can't teleport yourself!");
SetPlayerHealth(targetid,100);
return 1;
}
before anyone asks... i have the include at the top (zcmd and sscanf... i also have to plugins)
Re: Server unknown command, dafuq -
FalconX - 18.08.2012
Remove OnPlayerCommandText callback and then check.
Re: Server unknown command, dafuq -
BigAl - 18.08.2012
I haven't got that in... i just have 4 commands all using COMMAND:...
Re: Server unknown command, dafuq - Riddy - 18.08.2012
Is the command working? as in, functioning (setting health to 100).
Re: Server unknown command, dafuq -
BigAl - 18.08.2012
No riddy...
Re: Server unknown command, dafuq -
BigAl - 18.08.2012
No commands work.
Re: Server unknown command, dafuq -
BigAl - 18.08.2012
PLEASE HELP!
Re: Server unknown command, dafuq -
grand.Theft.Otto - 18.08.2012
Are you sure you put the command outside of any other callback , like at the bottom of the script for example ?
Re: Server unknown command, dafuq -
BigAl - 18.08.2012
Yeah 100% I've checked that loads...
Re: Server unknown command, dafuq -
grand.Theft.Otto - 18.08.2012
Weird
I don't think this will make a difference but try changing it from COMMAND:heal to CMD:heal
Re: Server unknown command, dafuq -
BigAl - 18.08.2012
haha, i thought the same thing... and i already tried this.

erm, shall i post my whole filterscript... (im just testing stuff in it) here it's only 90 lines?
Re: Server unknown command, dafuq -
Kindred - 18.08.2012
Do you have #define FILTERSCRIPT ?
That might do the trick. Not sure, seeing as I NEVER use filterscripts
Re: Server unknown command, dafuq -
BigAl - 18.08.2012
Didn't make a difference

WTF?! :/
Re: Server unknown command, dafuq -
BigAl - 18.08.2012
PLEASE SOMEONE HELP