Problem with CreateDynamicPickup(Incognito's streamer)
#1

Hi, an hour ago, the CreateDynamicPickup functions of my gamemode from Incognito's Streamer were gone,
simply ,they not create when they need to. I used version 2.6.1, so i update it to 2.8.1 and the problem persists too.

The funny thing is that they always work me ... it was "magic" the way they stopped working.


Does anyone have any idea what may be happening?

Sorry for my english.
Reply
#2

Mind posting a copy of the pickup codes please?
Reply
#3

Код:
CreateDynamicPickup(19522, 23, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ],0,0,-1,300.0);
Or

Код:
CreateDynamicPickup(1239, 1, CDSInfo[dealershipid][cdEntranceX], CDSInfo[dealershipid][cdEntranceY], CDSInfo[dealershipid][cdEntranceZ], .interiorid = 0);
Or
Код:
CreateDynamicPickup(19197, 23, DDoorsInfo[doorid][ddExteriorX], DDoorsInfo[doorid][ddExteriorY], DDoorsInfo[doorid][ddExteriorZ]+0.3, DDoorsInfo[doorid][ddExteriorVW]);
Each one is from diferent systems in my gamemode... no one works...
Reply
#4

So you said they were working when you had 2.6.1 but now you've updated to 2.8.1 and they're not?
Reply
#5

Suposing this example:

There was 2PM, the pickups work correctly.

At 4PM, the pickups stops working.

As a posible solution, i update the version from 2.6.1 to 2.8.1, but the problem still there.
Reply
#6

Like, I'd be slamming whoever told you to update, as that will cause more trouble than it is worth a lot of the time.


People throw out "Update it" as they haven't got a clue, especially when they don't give a thought to what has been changed between those versions.


Did you use SVN/Git, or do you have a last known good script? Any possibility of rolling back to where it was actually working?
Reply
#7

If you explain me what means SVN/Git i could be able to answer your question lol.


And i don't have any "backups" or an script that works fine by two reasons:

In total, i have edited that system 2 times, and after of that edits, the system still working perfectly(It started to work bad by "unknown reason" :V)
And the other reason is that i know perfectly what i do in the gamemode after and before each "Update" of "versions" of the gamemode, so i "backup" it after big versions ;v

I have no problem to do all de "lost" things of de "damaged script", but... їi can determinate that the problem is "magic"? :P
Reply
#8

Otherwise i can change them to normal pickups(CreatePickup), but.... їIt won't lag my server or anything else?

I think my gamemode hasn't more than the pickups limit, so i can use them without problem probably...

But, returning the before question... їIt is magic? :V i will not left this post without knowing the answer haha :V
Reply
#9

Don't go backwards... If you were using the streamer before and it worked, then stick with it.

You could use Diff to check the difference between the original script you downloaded, and what you've ended up with.


SVN and Git are version control methods, which allow you to have diff displayed, and allow for rolling back of changes. It's usually used among groups as it allows merging of work, and various branches, so one group could be working on car systems, another could be working on death systems, and at a later time they can link the branches and end up with a merged setup.


The reason why I asked was that it would be an idea to go back to what was working, and see what has changed between then and now.
Reply
#10

Okey, i think this is magic... i don't touch my gamemode like an few hours ago, i changed from CreatePickup to CreateDynamicPickups again, and it works...


One day pawn will kill me.... X(


Thanks for your help!!!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)