Quote:
Originally Posted by ChristolisTV
I don't think if this is gonna work:
PHP код:
new price = GetVehiclePrice(modelid);
new Float:ParkX, Float:ParkY, Float:ParkZ;
new name[64];
if(GetCash(playerid) < price) return NoCashMSG(playerid);
GiveCash(playerid, -price);
name = GetName(playerid);
new slot = GetNextPlayerVehSlot(playerid);
if(IsABoatModel(modelid))
{
ParkX = 310.3268;
ParkY = -1941.7601;
ParkZ = 1.3952;
} else
if(IsAPlaneModel(modelid))
{
ParkX = 1943.5498;
ParkY = -2397.6553;
ParkZ = 13.5469;
} else
if(IsAFarmerModel(modelid))
{
ParkX = -329.681;
ParkY = -1427.7;
ParkZ = 16.0862;
}
else
{ //Put your coords here.
ParkX = 0.0;
ParkY = 0.0;
ParkZ = 0.0;
}
|
Код:
(21542) : error 029: invalid expression, assumed zero