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

Quote:
Originally Posted by Crazymax
Посмотреть сообщение
Of course it's possible.. here is an example.

pawn Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(str,sizeof(str),"/Users/%s.txt",name);
new File:example = fopen(str, io_read);
I get: error 017: undefined symbol "str"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)