SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 17/03/2019, 01:58 AM   #1
polygxn
Big Clucker
 
polygxn's Avatar
 
Join Date: Dec 2018
Location: Hungary
Posts: 75
Reputation: 1
Default Inline timer issue

So Im using THIS inline timer include.

The problem is when the SetInlineTimer executed I got back these errors in the console (however, its executing successfully):
PHP Code:
[debugRun time error 5"Invalid memory access"
[debugAMX backtrace:
[
debug#0 00012a80 in Malloc_Free (Alloc:slot=8380680) at \pawno\include\YSI_Coding\y_malloc/funcs.inc:775
[debug#1 00051110 in public InlineTimersHandler (repeat=0, address=8380680, pointer=332848, offset=12, data1=1, data2=0, Alloc:mem=2089776) at \pawno\include\inline_timers.inc:27 
These are the lines in inline_timers.inc ( 25-28 ):
PHP Code:
if (!repeat) {
    
free(Allocmget(Allocmem1));
    
free(Allocmem);

Here are some debug info:
PHP Code:
Pawn compiler 3.2.3664                  Copyright (c1997-2006ITB CompuPhase

Header size
:           5684 bytes
Code size
:           362668 bytes
Data size
:          8380664 bytes
Stack
/heap size:   17039360 bytesestimated maxusageunknowndue to recursion
Total requirements
:25788376 bytes 
Im posting this since I have no clue how to fix this lol. I would appreciate some help (even if its working).
polygxn is offline   Reply With Quote
Old 17/03/2019, 04:11 PM   #2
Dutheil
Godfather
 
Dutheil's Avatar
 
Join Date: Jul 2014
Location: France
Posts: 5,141
Reputation: 221
Default Re: Inline timer issue

Do you use YSI 5.x ?
__________________
#PrayForFrenchForum
GitHub

pawn Code:
print({1466458484, 543452960, 2037347616, 1952999790, 1797286260, 544694643, 543649646, 1851859053, 1634428192, 1056964608});
Dutheil is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timer issue AndreiWow Scripting Help 7 19/01/2017 12:55 PM
Issue with timer AndreiWow Scripting Help 5 19/01/2017 10:36 AM
Which is better Per Player Timer or Global timer? (issue with timer) Dokins Scripting Help 4 07/06/2016 09:50 AM
Timer issue Deduction Scripting Help 1 17/12/2013 03:19 PM
Timer issue shanks_ Scripting Help 0 08/02/2012 06:16 PM


All times are GMT. The time now is 08:06 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.