Hello There, Guest! Login or Register


weapons aint saved after timeout/crash
#1
Heyo, just wanted to ask in what version the spawnweapons will restroe after a crash or timeout?

You told us its the case in 2.90 and now we made 17 bugfix-steps and its still not included :(

Dont want to bug you guys a lot but please try to fix this first instead of completely unimportant crap like showing reactiontests in minigames :)  *no offence*
Reply
#2
They are still working on it. it was bugged they said. also,
http://forum.sa-mp.nl/index.php?topic=17835.0 old topic but still maybe takes the time to fix it. maybe in .18 or .19, not sure tho.
Reply
#3
I actually can't wait for this addition. :>
Reply
#4
no reply?
Reply
#5
I got this one working for my server...

Store the spawn weapon info in a sepperate file, or db.

use gettime(); and save that in the file too..

then when the player reconnects, regardless of their ip, because some timeouts / crashes happen if the internet goes dead too you know :o  :+

So... when they connect, gather the info from the players temp saved file, firstly gather the saved time..

it should be a shit ass long number in seconds. Save that as something imaginative like erm... "TimeStamp"

then compare the current time with the saved time..

new CurrentTime = gettime();

if(CurrentTime >= TimeStamp + 901)  901 = 15minutes and 1 second..

So if its past the 15 minute mark, you can clear the saved info, and not read any further info from the file...

but if it isnt past the 15minute mark.. either use "else" or you can use..

if(CurrentTime <= TimeStamp + 900)

Then go ahead and read the rest of the info, ammo amounts and spawnarmour 1 or 0.

Thats basically how i did it.
Reply
#6
So much better when they save after a crash!!!  Why we buy them? To keep them! :)

I just wait for this addition, its needed.  8)
Reply