30.11.2009, 17:08
Ain't really sure what im meant to do now to get it working right...
I need it to get each file name that has a ini extension...
Heres what i tried... It's noobish
also tried ffind as a statement but its not working right at all...
I need it to get each file name that has a ini extension...
Heres what i tried... It's noobish
pawn Код:
stock ConvertINI()
{
new File[128];
for(new i=0; i<=17180; i++)
{
ffind("accounts/*.ini", File, sizeof(File), i);
if(dini_Exists(File))
{
printf("%s found", File);
SaveToDB(File);
}
else
{
printf("File %s not found", File);
}
}
}