SA-MP Forums Archive
Float.inc help - 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: Float.inc help (/showthread.php?tid=620245)



Float.inc help - iamjems - 27.10.2016

This is my problem:

The server prints this out when I leave:

Код:
[00:48:39] [debug] Run time error 6: "Invalid instruction"
[00:48:39] [debug]  Unknown opcode 0x24000000 at address 0x00000035
[00:48:39] [debug] AMX backtrace:
[00:48:39] [debug] #0 00000035 in public Itter_OnPlayerDisconnect () at D:\Desktop\jdfreeroam\pawno\include\float.inc:121
[00:48:39] [debug] #1 native CallLocalFunction () from samp-server.exe
[00:48:39] [debug] #2 00007600 in public OnPlayerDisconnect (playerid=43, reason=1) at D:\Desktop\jdfreeroam\pawno\include\foreach.inc:643
I have figured out where the problem is, it's in this line:

Код:
PlayerInfo[targetid][pDonatorTime] = gettime()+days*86400;
When I remove it, everything's fine. When it's there, it messes up my saving system, etc.
I have seen other people using the unix timestamps just like me and it's working for them --> gettime()+days*86400.

Help!


Re: Float.inc help - iamjems - 27.10.2016

Bump


Re: Float.inc help - Jefff - 28.10.2016

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


Re: Float.inc help - iamjems - 28.10.2016

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Thanks!