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

Quote:
Originally Posted by Danny1
Посмотреть сообщение
Try this.

pawn Код:
new str, name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(str,sizeof(str),"/Users/%s.txt",name);
new File:example = fopen(str, io_read);
LOL. Str is string, not integer.
pawn Код:
new str[50], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(str,sizeof(str),"/Users/%s.txt",name);
new File:example = fopen(str, io_read);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)