13.01.2019, 19:12
Hello there, I created a list of files with a growing number, 1, 2, 3 ... within each file, the Score and the Player Name are saved, so I made a Loop through all files, and put it to print, returns "null" instead of returning the name in each file, has some logical error here, I believe, does anyone know what it is?
PHP код:
new TopSystem[70];
new pNameInFile[MAX_PLAYER_NAME];
for(new i = 0; i < 500; i++)
{
format(TopSystem, sizeof(TopSystem), "ScoreTOP/%i.ini", i);
pNameInFile = DOF2_GetString(TopSystem, "Nome");
printf("%s", pNameInFile);
}