Pickups on 0.3 -
Mattjones17 - 08.01.2010
Hi,
I remember that when 0.3 came out, you had to do something in order to get your pickups to show up. Now that the 0.3 forum is gone I can't find what it is - can someone please point me to the page where it is listed (as I can't find it on wiki) or if it is simply a matter of changing a function tell me what it needs to be changed to?
Thanks
Re: Pickups on 0.3 -
BMUK - 08.01.2010
My pickups show fine in 0.3 without any additional scriptage besides 'CreatePickup();' ?
Re: Pickups on 0.3 -
kmzr - 08.01.2010
You may be talking about a streamer? Streamers are mostly used when you have more pickups than the limit allows.
http://forum.sa-mp.com/index.php?topic=79868.0
Re: Pickups on 0.3 -
Rubennnnn - 08.01.2010
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
Re: Pickups on 0.3 -
BMUK - 08.01.2010
Quote:
Originally Posted by Rubennnnn
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
|
lol wut?
Re: Pickups on 0.3 -
Mattjones17 - 11.01.2010
Hi, am still no closer to solving this
Here is an example of my code, for creating pickups
public AddBusiness(ownerid, type, typeid, name[], Float

, Float:y, Float:z, buyprice, tax)
{
new query[512];
ConnectToDatabase();
samp_mysql_real_escape_string(name,name);
printf("Adding Business....");
format(query, sizeof(query), "INSERT INTO businesses (businessid, name, bank, ownerid, type, typeid, enterx, entery, enterz, buyprice, locked, quantitylevel, tax, cityfund) VALUES (null, '%s', 2000000, %d, %d, %d, %f, %f, %f, %d, 0, 0, %d, 0)",
name, ownerid, type, typeid, x,y,z,buyprice, tax);
printf(" SQL: %s",query);
samp_mysql_query(query);
samp_mysql_query("SELECT MAX(businessid) FROM businesses");
samp_mysql_store_result();
new SQLId[12];
samp_mysql_fetch_row(SQLId);
printf("Business Added as %s....",SQLId);
new BusinessId = strval(SQLId);
if(BusinessId >= MAX_BUSINESSES) { printf("Max Businesses Reached."); return INVALID_SQL_ID; }
if(type & BUSINESS_TYPE_LOCATION)
{
format(query, sizeof(query), "UPDATE locations SET businessid=%d WHERE id=%d",BusinessId,typeid);
printf(" SQL: %s",query);
samp_mysql_query(query);
LocationInfo[typeid][lBusinessId] = BusinessId;
}
BusinessInfo[BusinessId][bSQLId] = BusinessId;
strmid(BusinessInfo[BusinessId][bName], name, 0, strlen(name), 255);
BusinessInfo[BusinessId][bBank] = 2000000;
BusinessInfo[BusinessId][bOwnerSQLId] = ownerid;
BusinessInfo[BusinessId][bType] = type;
BusinessInfo[BusinessId][bTypeId] = typeid;
BusinessInfo[BusinessId][bEnter_x] = x;
BusinessInfo[BusinessId][bEnter_y] = y;
BusinessInfo[BusinessId][bEnter_z] = z;
BusinessInfo[BusinessId][bBuyPrice] = buyprice;
BusinessInfo[BusinessId][bLocked] = 0;
BusinessInfo[BusinessId][bQuantityLevel] = 0;
BusinessInfo[BusinessId][bTax] = tax;
FactoryMarkup[BusinessId] = 0;
BusinessInfo[BusinessId][bCityFund] = 0;
BizPickup[BusinessId] = CreatePickup(PICKUP_BIZ, 23, x, y, z);
return BusinessId;
}
It worked fine under 0.2.x.. and I'm sure i read that there is something you need to do to activate pickups on 0.3
Re: Pickups on 0.3 -
Finn - 11.01.2010
CreatePickup(model, type, Float:X, Float:Y, Float:Z,
Virtualworld)
You sure the player is in the same virtual world with the pickup?
Use
-1 if you want it to show in all worlds.
Re: Pickups on 0.3 -
Mattjones17 - 11.01.2010
would this have caused problems in 0.3 ONLY?
Re: Pickups on 0.3 -
Jakku - 12.01.2010
Quote:
Originally Posted by Mattjones17
would this have caused problems in 0.3 ONLY?
|
Correct me if I am wrong, that virtual world for pickups came at 0.3?
Re: Pickups on 0.3 -
Mattjones17 - 12.01.2010
ok - however my script will not compile with the 0.3 includes
how can i get pickups to work on 0.3 whilst compiling with 0.2.x includes