ServerUnknowCommand - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ServerUnknowCommand (
/showthread.php?tid=456905)
ServerUnknowCommand -
romsisx - 08.08.2013
Hi all.
How to fix ServerUnknwCommand?
Please help.
Re: ServerUnknowCommand -
BodyBoardVEVO - 08.08.2013
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;
}
Re: ServerUnknowCommand -
romsisx - 08.08.2013
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
Re: ServerUnknowCommand -
BodyBoardVEVO - 08.08.2013
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.
Re: ServerUnknowCommand -
romsisx - 08.08.2013
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?
Re: ServerUnknowCommand -
Skribblez - 08.08.2013
Please post a sample command that you use whenever you get that error message.
Re: ServerUnknowCommand -
romsisx - 08.08.2013
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;
}
Re: ServerUnknowCommand -
Skribblez - 08.08.2013
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.