27.04.2012, 21:41
To be more specific, how to I open a file for a specific player without knowing there account name ? example: "/Users/playersname.txt" if I dont know the users name 'playersname' how could the file be opened?
heres what I want to be able to do:
so if the name of the person inside the variable 'name' was 'cool', the path to his file would be "/Users/cool.txt"
Sorry if this is confusing! I am extremely confused my self and don't know if this is even possible.
heres what I want to be able to do:
Код:
//getting player name new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); //putting that player name into a path new File:example = fopen("/Users/name.txt", io_read);
Sorry if this is confusing! I am extremely confused my self and don't know if this is even possible.