gettime() crashes the server
#1

I use:
new timee = gettime() + time*86400;
to calculate vip days when I give vipa but we crash server?
Reply
#2

Looks like the problem I used to have long time ago.

https://sampforum.blast.hk/showthread.php?tid=544404
Reply
#3

Try using crashdetector to get a detailed report of what's wrong.
Reply
#4

Quote:
Originally Posted by iPrivate
Посмотреть сообщение
Looks like the problem I used to have long time ago.

https://sampforum.blast.hk/showthread.php?tid=544404
Did not understand what the problem is me, worked fine, but since I use yini 3.0 does not work.

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Try using crashdetector to get a detailed report of what's wrong.
I'm
Reply
#5

It's a file saving issue not gettime().
Reply
#6

Quote:
Originally Posted by Pottus
Посмотреть сообщение
It's a file saving issue not gettime().
The problem is if you use the gettime() in the calculations in this command crash server.
Reply
#7

Then show the log.
Reply
#8

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Then show the log.
What?
Reply
#9

Ok:
1) why using yini 3.0 when you can use the 3.1?
Try that, for hours:
pawn Код:
new hours,minutes,seconds;
gettime(hours, minutes, seconds);
new timee = hours * time*86400;
Reply
#10

Quote:
Originally Posted by maximthepain
Посмотреть сообщение
Ok:
1) why using yini 3.0 when you can use the 3.1?
Try that, for hours:
pawn Код:
new hours,minutes,seconds;
gettime(hours, minutes, seconds);
new timee = hours * time*86400;
Can not do so as I thought, using yini 3.0 because 3.1 ejects:
Код:
estimated max. usage: unknown, due to recursion
I have another question, when you spawn and die in the server log says this:
Код:
[death] Seiz died 255
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)