Need some help with opening a *specific* user file
#1

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:
Код:
//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);
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)