SERVER: Unknown Command, but still works? -
BeEasy114 - 23.04.2011
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
|
Re: SERVER: Unknown Command, but still works? -
Katros - 23.04.2011
Wrong command, or missed it's time to produce it
Re: SERVER: Unknown Command, but still works? -
BeEasy114 - 23.04.2011
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.
Re: SERVER: Unknown Command, but still works? -
linuxthefish - 23.04.2011
Read the post below, i'm to tired to think
Re: SERVER: Unknown Command, but still works? -
Ash. - 23.04.2011
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
}
Re: SERVER: Unknown Command, but still works? -
linuxthefish - 23.04.2011
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...
Re: SERVER: Unknown Command, but still works? -
BeEasy114 - 23.04.2011
AHHHH THANKS THATS WORKED WHOOT!
Re: SERVER: Unknown Command, but still works? -
fie - 23.04.2011
Samp community is ur friend!
Re: SERVER: Unknown Command, but still works? -
the_zande - 23.04.2011
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
Re: SERVER: Unknown Command, but still works? -
1D10T - 04.06.2011
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?