File read/write question
#4

pawn Код:
if( fexist( file ) )
{
   new File: o = fopen( file, io_write );
   fclose( o );
 
   INI_Open( file );
   INI_SetString("Name",Name);
   INI_SetString("Ip",Ip);
   INI_SetInt("Registered",0);
   INI_SetInt("Password",0);
   INI_SetInt("Level",0);
   INI_SetInt("Wired",0);
   INI_SetInt("Jailed",0);
   INI_SetInt("Money",0);
   INI_SetInt("Score",0);
   INIi_SetInt(,"Gov",0);
   INI_Save( );
   INI_Close( );
You may just be able to use INI_Open, but I haven't looked at the code lately, so I created the file with the default functions just in case. I also haven't used it in awhile, so it may not be INI_SetInt, but INI_IntSet. Please make sure I didn't mix them up.
Reply


Messages In This Thread
File read/write question - by psoftware - 01.01.2011, 18:42
Re: File read/write question - by Grim_ - 01.01.2011, 18:43
Re: File read/write question - by psoftware - 01.01.2011, 19:05
Re: File read/write question - by Grim_ - 01.01.2011, 19:10
Re: File read/write question - by psoftware - 01.01.2011, 19:21
Re: File read/write question - by _rAped - 01.01.2011, 19:22
Re: File read/write question - by Grim_ - 01.01.2011, 19:22

Forum Jump:


Users browsing this thread: 1 Guest(s)