i got prob with /v park... ima no idea how to fix it
Код:
else if(strcmp(x_nr,"park",true) == 0)
{
new Float:health;
GetVehicleHealth(GetPlayerVehicleID,health);
new newcar = GetPlayerVehicleID;
new Float:x,Float:y,Float:z;
new Float:a;
new carid;
new getcarid;
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
getcarid = GetPlayerVehicleID(playerid);
carid = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
GetVehiclePos(carid, x, y, z);
GetVehicleZAngle(carid, a);
if (health <= 350 && !IsModelABoat(newcar) && !IsModelABike(newcar) && !IsModelAPlane(newcar) && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar) && !IsModelAHeli(newcar))
{
if(!strcmp(CarInfo[getcarid][cOwner], pname, false) && IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
{
if(PlayerInfo[playerid][pPcarkey] == 9999 && PlayerInfo[playerid][pPcarkey2] == 9999 && PlayerInfo[playerid][pPcarkey3] == 9999 && PlayerInfo[playerid][pPcarkey4] == 9999 && PlayerInfo[playerid][pPcarkey5] == 9999)
{
SendClientMessage(playerid, COLOR_GREY, "You don't own a vehicle.");
return 1;
}
if(getcarid == carid)
{
CarInfo[carid][cLocationx] = x;
CarInfo[carid][cLocationy] = y;
CarInfo[carid][cLocationz] = z;
CarInfo[carid][cAngle] = a;
new area[35];
GetPlayer2DZone(playerid, area, sizeof(area));
format(string, sizeof(string), "~w~Parked ~n~~b~(%s).",area);
GameTextForPlayer(playerid, string, 10000, 3);
format(string, sizeof(string), "Vehicle Parked: %f.01, %f.01, %f.01 Location: %s",x,y,z,area);
SendClientMessage(playerid, COLOR_YELLOW2, string);
OnPropUpdate(4,carid);
OnPlayerUpdateEx(playerid);
DestroyVehicle(carid);
ownedcar[carid] = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
if(CarInfo[carid][cPaintjob] != 999)
{
ChangeVehiclePaintjob(carid, CarInfo[carid][cPaintjob]);
}
SetVehicleVirtualWorld(carid, CarInfo[carid][cVirWorld]);
SetVehicleModifications(carid);
TogglePlayerControllable(playerid, 1);
PutPlayerInVehicle(playerid, carid, 0);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Car Health Is Too Low Call Mehanic Or Drive In PNS!");
return 1;
}
}
PHP код:
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\Mazda.pwn(41230) : error 076: syntax error in the expression, or invalid function call
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\Mazda.pwn(41231) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.