Y_INI String Loading - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_INI String Loading (
/showthread.php?tid=331951)
Y_INI String Loading -
SpankMe2 - 06.04.2012
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?
Re: Y_INI String Loading -
ViniBorn - 06.04.2012
How you load the string?
Re: Y_INI String Loading -
SpankMe2 - 06.04.2012
INI_String("Name", HouseInfo[houseid][hname], 200);
I get no errors in Pawno but when I debug or use the sting I get blanks
Re: Y_INI String Loading -
SpankMe2 - 06.04.2012
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
Re: Y_INI String Loading -
ViniBorn - 06.04.2012
Show HouseInfo enum
Re: Y_INI String Loading -
SpankMe2 - 06.04.2012
pawn Код:
enum hInfo
{
Name[200],
Float:X,
Float:Y,
Float:Z,
....
}
Re: Y_INI String Loading -
ViniBorn - 06.04.2012
You open the file correctly?
Re: Y_INI String Loading -
SpankMe2 - 06.04.2012
Yeah it opens correctly as it uses the same define to save it