17.12.2010, 01:49
Hello,
I would like a command to check the accounts in the scripfiles.
I have this code:
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.
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;
}
Thanks you for to help me.

