SA-MP Forums Archive
gettime() crashes the server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: gettime() crashes the server (/showthread.php?tid=569008)



gettime() crashes the server - Seiz97 - 27.03.2015

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


Re: gettime() crashes the server - iPrivate - 27.03.2015

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

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


Re: gettime() crashes the server - CalvinC - 27.03.2015

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


Re: gettime() crashes the server - Seiz97 - 27.03.2015

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


Re: gettime() crashes the server - Pottus - 27.03.2015

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


Re: gettime() crashes the server - Seiz97 - 27.03.2015

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.


Re: gettime() crashes the server - CalvinC - 27.03.2015

Then show the log.


Re: gettime() crashes the server - Seiz97 - 27.03.2015

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


Re: gettime() crashes the server - maximthepain - 27.03.2015

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;



Re: gettime() crashes the server - Seiz97 - 27.03.2015

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