SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 19/08/2009, 08:44 PM   #1
Programie
Huge Clucker
 
Programie's Avatar
 
Join Date: Nov 2008
Location: Germany
Posts: 225
Reputation: 48
Default Pickup does not appear (Amount < 400) - Create pickup for specific player?

Hi

I've added some pickups to the game mode but not all appear.
There were less then 400 pickups.

Maybe it's possible to only create the pickups the player can see, if that is not fixable? But I can't find a way to create a pickup only for a specific player.

Does somebody already do this?
Programie is offline  
Old 19/08/2009, 09:07 PM   #2
Amit_B
Huge Clucker
 
Amit_B's Avatar
 
Join Date: Nov 2007
Location: Israel
Posts: 349
Reputation: 69
Default Re: Pickup does not appear (Amount < 400) - Create pickup for specific player?

Just now (SA-MP 0.2X) - creating pickup for a specific player it's not possible (maybe on plugin only...).
Hmm, check your pickup types, and test the count again.
If you want - an pickup counter, that I just scripted now (didn't tested it):
pawn Code:
new pCount = CreatePickup(1240,2,0.0,0.0,0.0);
DestroyPickup(pCount);
printf("Pickups count: %d",--pCount);
__________________
- Leading the Israeli SA-MP Community, SA-MP.co.il - SAMP-IL
- Currently working on the first anime project on SA-MP, Naruto Shippuden gamemode: #1, #2, #3

https://github.com/Amit-B/
Amit_B is offline  
Old 19/08/2009, 09:12 PM   #3
Programie
Huge Clucker
 
Programie's Avatar
 
Join Date: Nov 2008
Location: Germany
Posts: 225
Reputation: 48
Default Re: Pickup does not appear (Amount < 400) - Create pickup for specific player?

Quote:
Originally Posted by Amit B
If you want - an pickup counter, that I just scripted now (didn't tested it):
pawn Code:
new pCount = CreatePickup(1240,2,0.0,0.0,0.0);
DestroyPickup(pCount);
printf("Pickups count: %d",--pCount);
Ok you create a pickup and destroy it. But I don't destroy the pickups. I only destroy the pickups on reload (I have a admin cmd for it, cause I have saved the pickup data in a MySQL database).

Maybe the problem is the object limit?

// EDIT: Ok, I came back to the server and one of the first not appeared pickups appears.
Programie is offline  
Old 19/08/2009, 09:27 PM   #4
Amit_B
Huge Clucker
 
Amit_B's Avatar
 
Join Date: Nov 2007
Location: Israel
Posts: 349
Reputation: 69
Default Re: Pickup does not appear (Amount < 400) - Create pickup for specific player?

Hmm, I'm advising you to teleport to one of the pickup not appeared pickups (if you using Simon's debug script - use /setloc and the position of the pickup) and check if it really not there.
If not - the problem is something that destroying your pickups (search in your script for DestroyPickup) or the pickup limit.
__________________
- Leading the Israeli SA-MP Community, SA-MP.co.il - SAMP-IL
- Currently working on the first anime project on SA-MP, Naruto Shippuden gamemode: #1, #2, #3

https://github.com/Amit-B/
Amit_B is offline  
Old 19/08/2009, 09:50 PM   #5
Programie
Huge Clucker
 
Programie's Avatar
 
Join Date: Nov 2008
Location: Germany
Posts: 225
Reputation: 48
Default Re: Pickup does not appear (Amount < 400) - Create pickup for specific player?

There are just two DestroyPickup(). And these functions were only called if an admin reloads the properties (And property pickups) or the other pickups (Health, Info, ...).
But I don't call it. I also tried to destroy the pickups and recreate it (By using of this admin command). But it doesn't changed anything.
Programie is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP]Teleport pickup that player AND car RedFusion Help Archive 22 13/07/2010 09:56 PM
Enter pickup, be in car, but the pickup is visible MastahServers Help Archive 1 22/05/2010 10:04 AM
[HELP]Player Colour and Pickup JetfighterV Help Archive 13 10/01/2010 09:29 AM
on player pickup pickup Scoots Help Archive 4 18/03/2009 06:44 PM


All times are GMT. The time now is 04:26 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.