Server unknown command problem (help me!)
#1

Okay so i made an interior inside and interior but when i type /exit it does what i told it too but it also sends me SERVER:Uknown Command, id like to know how to make it not send me that...

at first i did
Code:
new Float:saveX[MAX_PLAYERS],Float:saveY[MAX_PLAYERS],Float:saveZ[MAX_PLAYERS];
except of the interior variables which are
Code:
new VagosHouse;
new VagosMassacre;
im not gonna show the OnGameModeInIt since it has nothing to do with that (in my opinion since im new in scripting)
So lets see the commands ive put...

Code:
	if(strcmp(cmdtext,"/enter",true)==0)
	{
		if(IsPlayerInRangeOfPoint(playerid,5.0,2469.2902832031,-1649.0827636719,13.471720695496))
		{
			SetPlayerPos(playerid,1527.229980,-11.574499,1002.097106);
			SetPlayerInterior(playerid,3);
			GetPlayerPos(playerid,saveX[playerid],saveY[playerid],saveZ[playerid]);
		}
	
		if(IsPlayerInRangeOfPoint(playerid,5.0,2230.6355,-1407.7169,24.0000))
		{
			SetPlayerPos(playerid,1523.509887,-47.821197,1002.130981);
			SetPlayerInterior(playerid,2);
            GetPlayerPos(playerid,saveX[playerid],saveY[playerid],saveZ[playerid]);
		}
		if(IsPlayerInRangeOfPoint(playerid,5.0,2394.7871,-1133.8131,30.7188))
		{
			SetPlayerPos(playerid,501.980987,-69.150199,998.757812);
			SetPlayerInterior(playerid,11);
            GetPlayerPos(playerid,saveX[playerid],saveY[playerid],saveZ[playerid]);
		}
		if(IsPlayerInRangeOfPoint(playerid,5.0,488.1916,-82.7742,998.7578))
		{
			SetPlayerPos(playerid,963.418762,2108.292480,1011.030273);
			SetPlayerInterior(playerid,1);
            
		}
		return 1;

	}
	if(strcmp(cmdtext,"/exit",true)==0){
	    if(IsPlayerInRangeOfPoint(playerid,5.0,963.418762,2108.292480,1011.030273))
			{
				SetPlayerPos(playerid,488.1916,-82.7742,998.7578);
				SetPlayerInterior(playerid,11);
				
			}
		 else {
		  		SetPlayerPos(playerid,saveX[playerid],saveY[playerid],saveZ[playerid]);
		  		SetPlayerInterior(playerid, 0);
	          }

And here's some ScreenShots of what it sends me...




Please help
Not forgeting that it only sends that in /exit!
Reply
#2

You could just change it from /enter to the actual enter key...which means it isnt a command, but a keypress... you want to change the 1024 to the enter key... that is currently set to the ALT KEY.... Like So
Code:
//----------------------------------------------------------
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(1024))
	{
		if(IsPlayerInRangeOfPoint(playerid,3,-1091.3252,-1613.6198,77.0530)) // Admin Area
		{
                  //DOOO WHAT EVERE HERE <<
                }
          }        
}
Reply
#3

Quote:
Originally Posted by Skidmarks
View Post
You could just change it from /enter to the actual enter key...which means it isnt a command, but a keypress... you want to change the 1024 to the enter key... that is currently set to the ALT KEY....
[/code]
Thanks man, i will consider this on some other script, but (im stubborn i know) i wanna do the /enter this time, if anyone else had an answer for me about how to get rid the "SERVER:Unknown command" thing please reply
Reply
#4

Oh im sorry btw wrong section, i confused Server Discussion with Server Support :S :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)