[YSI] Inline + General
#4

Quote:
Originally Posted by 10MIN
Посмотреть сообщение
1 Yes. As far as I know inline works only on a structure like
PHP код:
ParentFunction()
{
    
inline ChildFunction()
    {
    }
    
FunctionToCallInline

2. No. Again, as far as I know inline functions are made to make your life easier. (Well, I have used inlines with Dialogs (y_dialog.inc) and Queries (MySQL R41)) If you need to call the function Externally you have 2 ways (as far as my brain can think): Make the inline to a public OR copy the inline to the function where it is required.
Alright thanks.

Still have these 2 problems:
Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Hello.
When I run my server, it took about 10 mins to load YSI. Local or hosted, it's the same thing. Why? How can I avoid this waiting time?
Код:
[15:06:52]  
[15:06:52]  ======================================= 
[15:06:52]  |                                     | 
[15:06:52]  |        YSI version 4.00.0001        | 
[15:06:52]  |        By Alex "******" Cole        | 
[15:06:52]  |                                     | 
[15:06:52]  ======================================= 
[15:06:52]  
[15:17:44] *** YSI Warning: y_malloc set up via "CallLocalFunction", memory corruption is a remote possibility
As you can see, I've YSI warning. I don't know how to solve it. I don't use y_hooks. The problem should come from
CallLocalFunction("OnGameModeExit", ""); ?
EDIT:
Quote:
Originally Posted by Misiur
Посмотреть сообщение
11 minutes?! That's insane. Can you try for me compiling an empty project, only including <YSI\y_text>?

(and see how long does the loading take then)
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[16:12:47] filterscripts = ""  (string)
[16:12:47] 
[16:12:47] Server Plugins
[16:12:47] --------------
[16:12:47]  Loading plugin: sscanf
[16:12:47] 

[16:12:47]  ===============================

[16:12:47]       sscanf plugin loaded.     

[16:12:47]          Version:  2.8.2        

[16:12:47]    © 2012 Alex "******" Cole  

[16:12:47]  ===============================

[16:12:47]   Loaded.
[16:12:47]  Loading plugin: mysql
[16:12:47]  >> plugin.mysql: R41-4 successfully loaded.
[16:12:47]   Loaded.
[16:12:47]  Loaded 2 plugins.

[16:12:47] 
[16:12:47] Filterscripts
[16:12:47] ---------------
[16:12:47]   Loaded 0 filterscripts.

[16:12:47]  
[16:12:47]  
[16:12:47]  
[16:12:47]  ======================================= 
[16:12:47]  |                                     | 
[16:12:47]  |        YSI version 4.00.0001        | 
[16:12:47]  |        By Alex "******" Cole        | 
[16:12:47]  |                                     | 
[16:12:47]  ======================================= 
[16:12:47]  
[16:12:49] *** YSI Error: No languages found - Did you add "Langs_AddLanguage" to the script init (NOT "main")?
[16:12:49] main()
[16:12:49] Number of vehicle models: 0
Reply


Messages In This Thread
[YSI] Inline + General - by Dayrion - 27.09.2017, 13:22
Re: [YSI] Inline + General - by 10MIN - 27.09.2017, 13:48
Re: [YSI] Inline + General - by Misiur - 27.09.2017, 14:08
Re: [YSI] Inline + General - by Dayrion - 27.09.2017, 14:10
Re: [YSI] Inline + General - by Dayrion - 27.09.2017, 14:42
Re: [YSI] Inline + General - by Misiur - 27.09.2017, 16:04
Re: [YSI] Inline + General - by Dayrion - 27.09.2017, 17:11
Re: [YSI] Inline + General - by Dayrion - 28.09.2017, 16:04
Re: [YSI] Inline + General - by Misiur - 28.09.2017, 17:44
Re: [YSI] Inline + General - by Dayrion - 29.09.2017, 09:59
Re: [YSI] Inline + General - by Misiur - 29.09.2017, 12:13
Re: [YSI] Inline + General - by Dayrion - 29.09.2017, 13:33
Re: [YSI] Inline + General - by Misiur - 29.09.2017, 13:39
Re: [YSI] Inline + General - by Dayrion - 29.09.2017, 18:26
Re: [YSI] Inline + General - by Misiur - 29.09.2017, 21:26
Re: [YSI] Inline + General - by Dayrion - 29.09.2017, 21:51
Re: [YSI] Inline + General - by Dayrion - 30.09.2017, 15:25
Re: [YSI] Inline + General - by Dayrion - 30.09.2017, 17:46
Re: [YSI] Inline + General - by Dayrion - 01.10.2017, 20:01
Re: [YSI] Inline + General - by Dayrion - 03.10.2017, 08:42
Re: [YSI] Inline + General - by Dayrion - 04.10.2017, 12:33
Re: [YSI] Inline + General - by Dayrion - 04.10.2017, 19:17
Re: [YSI] Inline + General - by Dayrion - 20.10.2017, 21:32
Re: [YSI] Inline + General - by Y_Less - 06.11.2017, 21:49
Re: [YSI] Inline + General - by Dayrion - 06.11.2017, 22:29
Re: [YSI] Inline + General - by Y_Less - 06.11.2017, 22:40

Forum Jump:


Users browsing this thread: 4 Guest(s)