SA-MP Forums Archive
Server Unknown Command -.- - 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: Server Unknown Command -.- (/showthread.php?tid=303735)



Server Unknown Command -.- - Wulffe - 15.12.2011

Hey out there!

Im trying to make a cmd to respawn faction vehicles.

Every time i use /ftow i get "Server Unknown Command"

I might be too tired to see the error, so here is the code.

Код:
	if(strcmp(cmd, "/ftow", true) == 0)
	{
		if (PlayerInfo[playerid][pRank] == 1 && PlayerInfo[playerid][pFaction] != 255)
		{
			for(new i = 0; i < MAX_VEHICLES; i++)
			{
			    if(DynamicCars[i][FactionCar] == PlayerInfo[playerid][pFaction])
				{
					if(IsVehicleOccupied(i) == 0)
			    	{
			        	SetVehicleToRespawn(i);
           				EngineStatus[i] = 0;
           				LightStatus[i] = 0;
  					Fuel[i] = GasMax;
  					VehicleLocked[i] = 1;
    					CarWindowStatus[i] = 1;
					}
			    }
			}
		}
		return 1;
	}
I hope someone can see the problem


Re: Server Unknown Command -.- - suhrab_mujeeb - 15.12.2011

pawn Код:
if(strcmp(cmd, "/ftow", true) == 0)
To

pawn Код:
if(strcmp(cmdtext, "/ftow", true) == 0)



Re: Server Unknown Command -.- - Wulffe - 15.12.2011

Quote:
Originally Posted by suhrab_mujeeb
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/ftow", true) == 0)
To

pawn Код:
if(strcmp(cmdtext, "/ftow", true) == 0)
I still get unknown command :/