Y_INI multi load\save
#1

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.
Reply
#2

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

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
Reply
#4

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


Forum Jump:


Users browsing this thread: 3 Guest(s)