Server unknown command, dafuq
#1

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)
Reply
#2

Remove OnPlayerCommandText callback and then check.
Reply
#3

I haven't got that in... i just have 4 commands all using COMMAND:...
Reply
#4

Is the command working? as in, functioning (setting health to 100).
Reply
#5

No riddy...
Reply
#6

No commands work.
Reply
#7

PLEASE HELP!
Reply
#8

Are you sure you put the command outside of any other callback , like at the bottom of the script for example ?
Reply
#9

Yeah 100% I've checked that loads...
Reply
#10

Weird

I don't think this will make a difference but try changing it from COMMAND:heal to CMD:heal
Reply
#11

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?
Reply
#12

Do you have #define FILTERSCRIPT ?

That might do the trick. Not sure, seeing as I NEVER use filterscripts
Reply
#13

Didn't make a difference WTF?! :/
Reply
#14

PLEASE SOMEONE HELP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)