Jump to content

Warning: tag mismatch


Pinki

Recommended Posts

Nu prea reusesc sa imi dau seama cum sa rezolv problema asta:

CMD:lock(playerid, params[])
{
	new engine, lights, alarm, doors, bonnet, boot, objective;
	new vehicleid = GetPlayerVehicleID(playerid);//defining vehicleid is = to GetPlayerVehicleID.
	SendAdminText(playerid, "/lock", params);

	if(IsPlayerInAnyVehicle(playerid))//Thsi will check that is a player In a vehcile or not.
	{
		if (AVehicleData[GetPlayerVehicleID(playerid)][Owned] == true)
		{
			if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
			{
				GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);

				if(doors == true)
				{
					SetVehicleParamsEx(vehicleid, engine, lights, alarm, false, bonnet, boot, objective);
					GameTextForPlayer(playerid,"~r~Masina descuiata!",3000,4);
				}
				else
				{
					SetVehicleParamsEx(vehicleid, engine, lights, alarm, true, bonnet, boot, objective);
					GameTextForPlayer(playerid,"~b~Masina incuiata!",3000,4);
				}
			}
			else
				SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu esti soferul masinii");
		}
		else
			SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu este masina ta");
	}
	else
		SendClientMessage(playerid,0xFFFFFFFF,"{FF0000}Trebuie sa te aflii intr-o masina");//the error message.
	return 1;
}

Putin ajutor daca se poate !

Imi da Warning tag missmatch la linia if(doors == true)

Edited by Pinki
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.