Need help with getting file name to string
#1

Hello , i got .ini files in the folder . and i wanna get all the file names from the folder to the string.

i writed some random test code , i am a little bit beginner of it and i am stuck on it

can someone help me to fix this stupid code ?

reping too who helps , thanks.

pawn Код:
new kFile[256];
    new string235[2012];
   
    for(new i; i < MAX_RACES; i ++)
    {
    format(kFile, sizeof(kFile), "/initest/%s.ini", RaceListName[i]);
   
    while(strcmp(RaceListName[i]))
    {
    strcat(string235, RaceListName[i], sizeof(string235));
    }
   
    }
   
    ShowPlayerDialog(playerid,10729,DIALOG_STYLE_MSGBOX,"Ini Names",string235,"Close","");
Reply


Messages In This Thread
Need help with getting file name to string - by titanak - 07.12.2011, 13:58
Re: Need help with getting file name to string - by titanak - 07.12.2011, 14:04
Re: Need help with getting file name to string - by titanak - 07.12.2011, 14:23

Forum Jump:


Users browsing this thread: 2 Guest(s)