08.08.2013, 01:21
Hi all.
How to fix ServerUnknwCommand?
Please help.
How to fix ServerUnknwCommand?
Please help.
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
if(!success )
SendClientMessage( playerid, RED, "Wrong Command! Use /commands or /cmds for available commands." );
return 1;
}
Please post a sample command that you use whenever you get that error message.
|
if(strcmp("/skeisti", cmd, true) == 0) { // If there was a previously created selection menu, destroy it DestroySelectionMenu(playerid); SetPVarInt(playerid, "skinc_active", 1); //SetPVarInt(playerid, "skinc_page", 0); // will reset the page back to the first CreateSelectionMenu(playerid); SelectTextDraw(playerid, 0xACCBF1FF); return 1; } return 0; }
Код:
if(strcmp("/skeisti", cmd, true) == 0) { // If there was a previously created selection menu, destroy it DestroySelectionMenu(playerid); SetPVarInt(playerid, "skinc_active", 1); //SetPVarInt(playerid, "skinc_page", 0); // will reset the page back to the first CreateSelectionMenu(playerid); SelectTextDraw(playerid, 0xACCBF1FF); return 1; } <---- I'm not sure if it's an extra or really part of the code. return 0; } |