SERVER: UNKNOWN COMMAND, ???
#1

I have several commands on dcmd,
But ingame it just says Unknown Command?
Reply
#2

maybe you forget the return 1;

pawn Код:
dcmd_heal(playerid,params[])
{
  SetPlayerHealth(playerid,100.0);
  return 1;
}
Reply
#3

Nope not that, I would get loads of errors if i did
Reply
#4

it was happening to me too,but i am sure it should be returns... return 1; etc
Reply
#5

yea, when i was using dcmd i it always executed the command first and after that it returned the message command is invalid blabla. im pretty sure that you have forgotten a return 1; otherwise you'll have to show your code here.

//: Are you sure you have return 1; too in your onplayercommandtext callback?
Quote:

Returns: Returning 0 in this callback will pass the command to another script or display 'SERVER: Unknown command' if there are no scripts to pass it on to

Reply
#6

Its nothing to do with any returns,
Reply
#7

Quote:

Its nothing to do with any returns

yes it does actually, can you show us a piece you have under onplayercommandtext ?
Reply
#8

Post any of these commands.
Reply
#9

Quote:
Originally Posted by boelie
Quote:

Its nothing to do with any returns

yes it does actually, can you show us a piece you have under onplayercommandtext ?
Its nothing to do with returns,
If it was a returns problem then the command wouldnt show at all,
But it just says SERVER: UNKNOWN COMMAND, If it was returns,
It wouldnt do anything, It would just be blank,

One of my codes

pawn Код:
dcmd_kill(playerid, params[])
{
    #pragma unused params
    SetPlayerHealth(playerid, 0);
    return 1;
}
Reply
#10

Bumpetty Bump Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)