[Include] Inline file loading
#16

Quote:
Originally Posted by SkittlesAreFalling
View Post
Okay.
I think it'll be a good idea to make an append, really helpful for lazy people! lol

Great work man.

Edit:
Looking over your function, I believe I can make the append for you if you want.
Sure thing, but it might be a bit complicated (e.g. it might require a few assembly instructions).

Quote:
Originally Posted by Scaleta
View Post
Don't you mean eInline File Loading? Jokes.

This could be useful for small things like quick config files. Awesome!
Haha, thanks! I was thinking of adding the "e" in there, like I did with my previous libraries

Quote:
Originally Posted by Ada32
View Post
don't just have an idea and implement so loosely.. the concept itself is bad. and why is import a keyword?
I've actually been working on the idea for a while. At first it was a global keyword:

pawn Code:
#include <a_samp>

new
    a,
    Float:b,
    c[24];

fload LoadFile["test.ini"](a, Float:b, c[24]);

public OnFilterScriptInit()
{
    return 1;
}
But it just looked too tacky. I resorted to creating an inline "keyword" so it can all be controlled in a single compound block. I chose "import" because it was the only appropriate word for it (think of it as a way.. "importing" a file and read the data). Some other previous keywords were "Load_File", "File_Load" and "loadfile" but they all looked weird.
Reply


Messages In This Thread
Inline file loading - by Emmet_ - 28.02.2014, 06:03
Re: Inline file loading - by Gnabry - 28.02.2014, 06:06
Re: Inline file loading - by Lordzy - 28.02.2014, 06:08
Re: Inline file loading - by ARamsey - 28.02.2014, 06:10
Re: Inline file loading - by Sky™ - 28.02.2014, 11:16
Re: Inline file loading - by iZN - 28.02.2014, 12:34
Re: Inline file loading - by CriticalRP - 28.02.2014, 14:02
Re: Inline file loading - by PT - 28.02.2014, 14:19
Re: Inline file loading - by Whitetiger - 28.02.2014, 14:27
Re: Inline file loading - by Emmet_ - 28.02.2014, 17:51
Re: Inline file loading - by SkittlesAreFalling - 28.02.2014, 18:03
Re: Inline file loading - by Emmet_ - 28.02.2014, 18:10
Re: Inline file loading - by SkittlesAreFalling - 28.02.2014, 18:24
Re: Inline file loading - by Scaleta - 28.02.2014, 18:25
Re: Inline file loading - by Ada32 - 28.02.2014, 18:35
Re: Inline file loading - by Emmet_ - 28.02.2014, 18:53
Re: Inline file loading - by CriticalRP - 28.02.2014, 19:41
Re: Inline file loading - by Emmet_ - 01.03.2014, 00:31
Re: Inline file loading - by CriticalRP - 01.03.2014, 16:12
Re: Inline file loading - by fiki574 - 02.03.2014, 09:35
Re: Inline file loading - by silvan - 21.02.2019, 07:51
Re: Inline file loading - by Spoookymon - 25.02.2019, 20:16
Re: Inline file loading - by TomasByoka - 25.05.2020, 20:13
Re: Inline file loading - by Calisthenics - 25.05.2020, 21:27

Forum Jump:


Users browsing this thread: 1 Guest(s)