SA-MP Forums Archive
Y_INI multi load\save - 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 multi load\save (/showthread.php?tid=406500)



Y_INI multi load\save - Spiritser - 10.01.2013

Hi users. Sorry for bad English.
Tell me please, it's possible?

PHP код:
INI_WriteFloat(iniFile,"Obj"PX[0],PX[1],PX[2],PX[3],PX[4],PX[5]); 
How to save multiple values ​​in a single "cell"?

Thanks.


Re: Y_INI multi load\save - mineralo - 10.01.2013

pawn Код:
for(new i=0;i<6;i++)
{
INI_WriteFloat(iniFile,"Obj", PX[i]);  
}



Re: Y_INI multi load\save - Spiritser - 10.01.2013

Quote:
Originally Posted by mineralo
Посмотреть сообщение
pawn Код:
for(new i=0;i<6;i++)
{
INI_WriteFloat(iniFile,"Obj", PX[i]);  
}
It's still not working. Need a this format:

Код:
Obj = 1.0, 2.0, 3.0, 4.0, 5.0, 6.0
or
Код:
Obj = 1.0 2.0 3.0 4.0 5.0 6.0



Re: Y_INI multi load\save - u3ber - 10.01.2013

write as string, load as float by splitting (sscanf does this perfectly).