spawning vehicles in blueberry
#1

i know what is problem but i cant solve this

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;
}
if(IsAPlaneModel(modelid))
{
ParkX = 1943.5498;
ParkY = -2397.6553;
ParkZ = 13.5469;
}
if(IsAFarmerModel(modelid))
{
ParkX = -329.681;
ParkY = -1427.7;
ParkZ = 16.0862;
}
else

i cant find model of owned vehicles please help me with this
Reply
#2

Make Ur Log As Bbcodes format to make it more undertsandable
Reply
#3

Quote:
Originally Posted by aymane123
Посмотреть сообщение
Make Ur Log As Bbcodes format to make it more undertsandable
Код:
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;
}
if(IsAPlaneModel(modelid))
{
ParkX = 1943.5498;
ParkY = -2397.6553;
ParkZ = 13.5469;
}
if(IsAFarmerModel(modelid))
{
ParkX = -329.681;
ParkY = -1427.7;
ParkZ = 16.0862;
}
else
Reply
#4

Can you show the IsABoatModel(), IsAPlaneModel(modelid), IsAFarmerModel(modelid) stocks?
Reply
#5

Quote:
Originally Posted by ChristolisTV
Посмотреть сообщение
Can you show the IsABoatModel(), IsAPlaneModel(modelid), IsAFarmerModel(modelid) stocks?
look , Boat Plane and Farmer models spawning correclty but other vehicles like majestic , elegy and much more spawning in blueberry..
Reply
#6

I don't think if this is gonna work:

PHP код:
new price GetVehiclePrice(modelid);
new 
Float:ParkXFloat:ParkYFloat: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;

Reply
#7

Quote:
Originally Posted by ChristolisTV
Посмотреть сообщение
I don't think if this is gonna work:

PHP код:
new price GetVehiclePrice(modelid);
new 
Float:ParkXFloat:ParkYFloat: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
Reply
#8

Hey? anyone can help me?
Reply
#9

Can you show me where is the error line? :P

EDIT: I think your error line is here:
PHP код:
name GetName(playerid); 
I recommend doing this:

PHP код:
GetPlayerName(playeridpNamesizeof(pName)); 
Reply
#10

no its not working , can you help me??
Reply
#11

Read my previous post, I made an edit.
Reply
#12

Код:
error 017: undefined symbol "pName"
gamemodes\ss-rp.pwn(21517) : error 017: undefined symbol "pName"
\gamemodes\ss-rp.pwn(21517) : error 029: invalid expression, assumed zero
\ss-rp.pwn(21517) : fatal error 107: too many error messages on one line
add me in skype avto_mela1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)