SERVER: Unknown Command, but still works?
#1

I am getting this as i switch through my skins at a spawning place for my in-game changing areas.
but it still works and compiles esc... anyone know why this happens?

Quote:

SERVER: Unknown Command
SERVER: Unknown Command
SERVER: Unknown Command
SERVER: Unknown Command
SERVER: Unknown Command
SERVER: Unknown Command
SERVER: Unknown Command
SERVER: Unknown Command

Reply
#2

Wrong command, or missed it's time to produce it
Reply
#3

Quote:
Originally Posted by Katros
Посмотреть сообщение
Wrong command, or missed it's time to produce it
no like i go to my spawning spot right, and it changes my skin and does everything it's supposed to, but it says that in the process everytime? any idea how to fix it cause it floods the command bar.
Reply
#4

Read the post below, i'm to tired to think
Reply
#5

Quote:
Originally Posted by linuxthefish
Посмотреть сообщение
Try returning 1 on the callback/function to change the player's skin.
No, don't return 1 in the callback, nor the function.

Return 1 in the actual command script (for example: dcmd
pawn Код:
dcmd_command(playerid, params[])
{
     return 1; // At End
}
Reply
#6

Quote:
Originally Posted by funky1234
Посмотреть сообщение
No, don't return 1 in the callback, nor the function.

Return 1 in the actual command script (for example: dcmd
pawn Код:
dcmd_command(playerid, params[])
{
     return 1; // At End
}
Thanks, i don't know what i'm thinking...
Reply
#7

AHHHH THANKS THATS WORKED WHOOT!
Reply
#8

Samp community is ur friend!
Reply
#9

hehee xDD I agree with that samp community is ur friend because I have been in here for few days and I learned to script very well, because here is lot of social players giving help DD and I had same problem when I was pretty naab.... actually im still naab atm but not sooo much than before. (8
Reply
#10

Im having this:

Quote:

command(setskin, playerid, params[])
{
new skin, id;
if( sscanf( params, "du", skin, id ))
{
if( Player[playerid][AdminLevel] >= 3 )
{
SendClientMessage( playerid, GREY, "Syntax: /setskin [skinid] [playerid]" );
}
}
else
{
if( Player[playerid][AdminLevel] >= 3 )
{
Player[id][Skin] = skin;
SetPlayerSkin( id, skin );
}
}
return 1;
}

command works fine and all. No errors in compile. But... when you do it in-game then the skin changes and all but you still recieve the SERVER: Unknown Command error. Anyone knows why this is?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)