ServerUnknowCommand
#1

Hi all.
How to fix ServerUnknwCommand?
Please help.
Reply
#2

How To Change It ?

Put this before OnGameModeInit{}
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
    if(!success )
      SendClientMessage( playerid, RED, "Wrong Command! Use /commands or /cmds for available commands." );
      return 1;
}
Reply
#3

Quote:
Originally Posted by BodyBoardVEVO
Посмотреть сообщение
How To Change It ?

Put this before OnGameModeInit{}
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
    if(!success )
      SendClientMessage( playerid, RED, "Wrong Command! Use /commands or /cmds for available commands." );
      return 1;
}
How to fix,but not change it . I write any command and write ServerUnknowCommand
Reply
#4

Quote:
Originally Posted by romsisx
Посмотреть сообщение
How to fix,but not change it . I write any command and write ServerUnknowCommand
Please use translate.******.com...
I really dont understand.
Reply
#5

Quote:
Originally Posted by BodyBoardVEVO
Посмотреть сообщение
Please use translate.******.com...
I really dont understand.
How do I change I know, but how to fix this error?
Reply
#6

Please post a sample command that you use whenever you get that error message.
Reply
#7

Quote:
Originally Posted by Skribblez
Посмотреть сообщение
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;
}
Reply
#8

Quote:
Originally Posted by romsisx
Посмотреть сообщение
Код:
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;
}
I believe the code that you posted is incomplete. Check the red text above and confirm, thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)