Razvan2264 Posted January 13, 2014 Posted January 13, 2014 Am comanda /v park adaugata pe sv inainte mergea dar de cand am facut update pe 0.3x nu mai merge:[pawn] else if(strcmp(x_nr,"park",true) == 0) { new Float:x,Float:y,Float:z; new Float:a; new carid; new getcarid; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid = PlayerInfo[playerid][pPcarkey2]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3] && PlayerInfo[playerid][pDonateRank] >= 1) { carid = PlayerInfo[playerid][pPcarkey3]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey4] && PlayerInfo[playerid][pDonateRank] >= 2) { carid = PlayerInfo[playerid][pPcarkey4]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey5] && PlayerInfo[playerid][pDonateRank] >= 2) { carid = PlayerInfo[playerid][pPcarkey5]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey6] && PlayerInfo[playerid][pDonateRank] >= 3) { carid = PlayerInfo[playerid][pPcarkey6]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey7] && PlayerInfo[playerid][pDonateRank] >= 3) { carid = PlayerInfo[playerid][pPcarkey7]; } else { return 1; } getcarid = GetPlayerVehicleID(playerid); GetPlayerName(playerid, playername, sizeof(playername)); GetVehiclePos(carid, x, y, z); //GetPlayerFacingAngle(playerid, a); GetVehicleZAngle(carid, a); if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1) { if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999 && PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pPcarkey6] == 999 & PlayerInfo[playerid][pPcarkey7]) { SendClientMessage(playerid, COLOR_GREY, "You don't own a car."); return 1; } if(getcarid == carid) { CarInfo[carid][cLocationx] = x; CarInfo[carid][cLocationy] = y; CarInfo[carid][cLocationz] = z; CarInfo[carid][cAngle] = a; format(string, sizeof(string), "~n~ You have parked your vehicle in this location. ~n~"); GameTextForPlayer(playerid, "You have parked your vehicle in this position. It will respawn here.", 10000, 3); OnPropUpdate(); OnPlayerUpdate(playerid); DestroyVehicle(carid); SetVehicleNumberPlate(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),CarInfo[carid][cLicense]); if(CarInfo[carid][cPaintjob] != 999) { ChangeVehiclePaintjob(carid, CarInfo[carid][cPaintjob]); } SetVehicleModifications(carid); SaveVehicleComponents(carid); TogglePlayerControllable(playerid, 1); return 1; } } }[/pawn]Stie cineva ce are??Multumesc Pentru ajutor
WaZP Posted January 13, 2014 Posted January 13, 2014 In ce sens nu iti functioneaza? [Nu mai functioneaza Deloc.. Are Bug cad dai /v park].Ai incercat sa dai Update la Plugins-uri, unele Include-uri?
.shadoW Posted January 13, 2014 Posted January 13, 2014 Am comanda /v park adaugata pe sv inainte mergea dar de cand am facut update pe 0.3x nu mai merge:Imposibil sa nu mearga chiar dac acuma e 0.3x
Razvan2264 Posted January 13, 2014 Author Posted January 13, 2014 deci comanda nu functioneaza deloc am bagat 0.3x si am mai facut mici modificari in mapping si nu mai merge
Question
Razvan2264
Am comanda /v park adaugata pe sv inainte mergea dar de cand am facut update pe 0.3x nu mai merge:
[pawn] else if(strcmp(x_nr,"park",true) == 0)
{
new Float:x,Float:y,Float:z;
new Float:a;
new carid;
new getcarid;
if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid = PlayerInfo[playerid][pPcarkey2]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3] && PlayerInfo[playerid][pDonateRank] >= 1) { carid = PlayerInfo[playerid][pPcarkey3]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey4] && PlayerInfo[playerid][pDonateRank] >= 2) { carid = PlayerInfo[playerid][pPcarkey4]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey5] && PlayerInfo[playerid][pDonateRank] >= 2) { carid = PlayerInfo[playerid][pPcarkey5]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey6] && PlayerInfo[playerid][pDonateRank] >= 3) { carid = PlayerInfo[playerid][pPcarkey6]; }
else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey7] && PlayerInfo[playerid][pDonateRank] >= 3) { carid = PlayerInfo[playerid][pPcarkey7]; }
else { return 1; }
getcarid = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
GetVehiclePos(carid, x, y, z);
//GetPlayerFacingAngle(playerid, a);
GetVehicleZAngle(carid, a);
if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1)
{
if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999 && PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pPcarkey6] == 999 & PlayerInfo[playerid][pPcarkey7])
{
SendClientMessage(playerid, COLOR_GREY, "You don't own a car.");
return 1;
}
if(getcarid == carid)
{
CarInfo[carid][cLocationx] = x;
CarInfo[carid][cLocationy] = y;
CarInfo[carid][cLocationz] = z;
CarInfo[carid][cAngle] = a;
format(string, sizeof(string), "~n~ You have parked your vehicle in this location. ~n~");
GameTextForPlayer(playerid, "You have parked your vehicle in this position. It will respawn here.", 10000, 3);
OnPropUpdate();
OnPlayerUpdate(playerid);
DestroyVehicle(carid);
SetVehicleNumberPlate(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),CarInfo[carid][cLicense]);
if(CarInfo[carid][cPaintjob] != 999)
{
ChangeVehiclePaintjob(carid, CarInfo[carid][cPaintjob]);
}
SetVehicleModifications(carid);
SaveVehicleComponents(carid);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}[/pawn]
Stie cineva ce are??
Multumesc Pentru ajutor
4 answers to this question
Recommended Posts