check ingame accounts in scriptfiles
#1

Hello,

I would like a command to check the accounts in the scripfiles.

I have this code:

Код:
stock Check()
{
	new string[126];
	format(string, sizeof(string), "Test_Test.ini");
	if(fexist(string))
	{
		new File: UserFile = fopen(string, io_read);
		if ( UserFile )
		{
		    new key[ 126 ] , val[ 126 ];
		    new Data[ 126 ];
		    while ( fread( UserFile , Data , sizeof( Data ) ) )
		    {
			 key = ini_GetKey( Data );
			 if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data );printf("Level %s", val);}
		         if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); printf("Respect %s", val);}
                     }
                    fclose(UserFile);//
		}
	}
         return true;
}
This code work perfectly, but I would like to check everything accounts, so string = any specific name just, if in scriptfiles there are "_" in a .ini, this account is checked.

Thanks you for to help me.
Reply


Messages In This Thread
check ingame accounts in scriptfiles - by ombre - 17.12.2010, 01:49
Re: check ingame accounts in scriptfiles - by Steven82 - 17.12.2010, 04:47
Re : check ingame accounts in scriptfiles - by ombre - 17.12.2010, 13:49
Re : check ingame accounts in scriptfiles - by ombre - 18.12.2010, 01:38

Forum Jump:


Users browsing this thread: 1 Guest(s)