Quote:
Originally Posted by SkittlesAreFalling
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
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
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.