Pickups on 0.3
#1

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
Reply
#2

My pickups show fine in 0.3 without any additional scriptage besides 'CreatePickup();' ?
Reply
#3

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
Reply
#4

pawn Код:
CreatePickup();
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
Reply
#5

Quote:
Originally Posted by Rubennnnn
pawn Код:
CreatePickup();
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
lol wut?
Reply
#6

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
Reply
#7

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.
Reply
#8

would this have caused problems in 0.3 ONLY?
Reply
#9

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?
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)