Y_INI String Loading
#1

Hey, I've made a housing system I load my string as so

INI_String("Name", HouseInfo[houseid][hname], 200);

And when I check the file i has the house name hereh

Name = Test

However when I load it the strings load as blank? Why?
Reply
#2

How you load the string?
Reply
#3

INI_String("Name", HouseInfo[houseid][hname], 200);

I get no errors in Pawno but when I debug or use the sting I get blanks
Reply
#4

Heres my debug code

printf("%s: - Incase the string prints shit all", HouseInfo[houseid][hname]);

And it give this...

[17:15:27] : - Incase the string prints shit all
Reply
#5

Show HouseInfo enum
Reply
#6

pawn Код:
enum hInfo
{
    Name[200],
    Float:X,
    Float:Y,
    Float:Z,
    ....
}
Reply
#7

You open the file correctly?
Reply
#8

Yeah it opens correctly as it uses the same define to save it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)