SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 03/05/2020, 05:21 PM   #1
Shaheen
Huge Clucker
 
Shaheen's Avatar
 
Join Date: Feb 2016
Location: Qatar
Posts: 221
Reputation: 24
Default Pikcups Dissapear

Hello Everyone,
I am facing some issues with my server now

I have more than 50 stores and sometimes the pickup gets automatically dissapears. its not pointing to particularr stores.

sometimes it gets dissapeared or it works fine. any solution.

here is my code

Note: i am using an include file. and in my main gamemode
its like
#include <store>

PHP Code:

forward loadStore
();
public 
loadStore()
{    
    for(new 
0MAX_STOREi++)
    {
        
//Store[i][storeCP] = CreateDynamicCP(Store[i][storePlace][0], Store[i][storePlace][1], Store[i][storePlace][2], 1.0);
        
Store[i][storeCP] = STREAMER_TAG_PICKUP:CreateDynamicPickup(191981Store[i][storePlace][0], Store[i][storePlace][1], Store[i][storePlace][2]+0.8);
        
Store[i][exitCP] = STREAMER_TAG_PICKUP:CreateDynamicPickup(191981Store[i][storeOut][0], Store[i][storeOut][1], Store[i][storeOut][2]+0.8,.worldid=Store[i][storeID]);
        
//Store[i][storeLabel] = CreateDynamic3DTextLabel("[STORE]", COLOR_GOLD, Store[i][storePlace][0], Store[i][storePlace][1], Store[i][storePlace][2] + 0.5, 10.0);
    
}


Store Array
PHP Code:
enum __inExdata
{
    
storeID,
    
Float:storePlace[4],
    
Float:storeOut[4],
    
storeInt,
    
storeIcon,
    
Float:StorePlayerPos[4],
    
Float:StorePlayerOutPos[4],
    
storenames[30],
    
RobActor,
    
storeCP,
    
exitCP,
    
Text3D:storeLabel

Helps Appreciated and ++
__________________


Add Me On Discord: Nightmare#6799
Shaheen is offline   Reply With Quote
Old 04/05/2020, 06:24 PM   #2
Shaheen
Huge Clucker
 
Shaheen's Avatar
 
Join Date: Feb 2016
Location: Qatar
Posts: 221
Reputation: 24
Default Re: Pikcups Dissapear

Update : i had tried to use streamer update but then also same issues persisit. as i said it only happens sometimes but if it happens its making me more trouble

any help someone
__________________


Add Me On Discord: Nightmare#6799
Shaheen is offline   Reply With Quote
Old 04/05/2020, 06:52 PM   #3
Nexotronix
Huge Clucker
 
Nexotronix's Avatar
 
Join Date: Jan 2010
Location: Donetsk/Ukraine
Posts: 275
Reputation: 41
Default Re: Pikcups Dissapear

Where are you loading from all data?

And please provide more info so we can help you!
__________________
Work In Progress:
[GameMode]Stroberia RolePlay (20%) [Join My Channel to take part in Testing http://discord.gg/sBpRC5E]
Development Video: Watch Here
Serverside Map/GPS System: Watch Here
Discord: Tom_Strobe#2300
Nexotronix is offline   Reply With Quote
Old 07/05/2020, 08:45 AM   #4
Shaheen
Huge Clucker
 
Shaheen's Avatar
 
Join Date: Feb 2016
Location: Qatar
Posts: 221
Reputation: 24
Default Re: Pikcups Dissapear

Quote:
Originally Posted by Nexotronix View Post
Where are you loading from all data?

And please provide more info so we can help you!

I am calling loadstores() in ongamemodeinit()

The Problems is when players spawns i can see pickups but after sometime, it gets vanished and i cannot enter store.
this does not occur often (That makes it harder to find where i have gone wrong).

Also i noticed it after player spawn happening chances are higher..

i have more than 8000 objects on the server and like about 3000 pickups. will it be related to a limit or what ??

also the pickuptype i am using is 1.
__________________


Add Me On Discord: Nightmare#6799
Shaheen is offline   Reply With Quote
Old 07/05/2020, 08:58 AM   #5
Uberanwar
Gangsta
 
Uberanwar's Avatar
 
Join Date: May 2012
Location: Malaysia
Posts: 893
Reputation: 63
Default Re: Pikcups Dissapear

Check validity of the checkpoint (IsValidDynamicCP) beforehand. If not valid, then create. Otherwise, destroy.
Uberanwar is offline   Reply With Quote
Old 07/05/2020, 07:49 PM   #6
Shaheen
Huge Clucker
 
Shaheen's Avatar
 
Join Date: Feb 2016
Location: Qatar
Posts: 221
Reputation: 24
Default Re: Pikcups Dissapear

Quote:
Originally Posted by Uberanwar View Post
Check validity of the checkpoint (IsValidDynamicCP) beforehand. If not valid, then create. Otherwise, destroy.
What is the use of that ??
I am not destroyed the pickup using the code. Its getting vanished automatically .
And when i go far and come near to it . It again shows up.

The only way to stream it back is going some distance away and coming back fixes it.

Also its not cp
Its pickup
__________________


Add Me On Discord: Nightmare#6799
Shaheen is offline   Reply With Quote
Reply

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
0.3z R4 - Trailer dissapear papedo Bug Reports 3 07/10/2014 06:04 AM
vehicles dissapear HardBoy Server Support 10 14/09/2012 11:59 AM
Npc dissapear TuTh Scripting Help 0 23/04/2012 12:20 PM
[help] load pikcups and objects from file roi857 Scripting Help 2 30/08/2011 09:02 PM
Objects [Dissapear] SmokeyMoose Help Archive 10 09/03/2011 05:43 PM


All times are GMT. The time now is 06:04 AM.


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