Server Unknown Command -.-
#1

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
Reply
#2

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

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

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 :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)