define from a file?
#1

Hi all. I am making a config.ini file for my admin scrpt. I need to know if its possible to do this or something like it:
pawn Код:
#define KDT dini_Int(file, "KDT");
Ig thats not how you do it, how would you do it? THANKS IN ADVANCE.
Reply
#2

I've never tried this or tested this before but maybe try to do this and see what comes up.
pawn Код:
#define KDT "dini_Int(file, "KDT");"
I added " " marks

P.S. Sorry don't know if this works or not
Reply
#3

^There's no need for the brackets because the compiler will read it with the brackets (a.k.a as a string)
So the correct usage is sciman001's.
Reply
#4

ok.. i had to restart my pc because pawno is actin up... anyway, yeah. so i'll just edit this post saying whether it worked or not.
Reply
#5

works
Reply
#6

Good to hear.
Reply
#7

i had to remove the ; mark though. :/ idk y.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)