SA-MP Forums Archive
Help with file_read - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with file_read (/showthread.php?tid=214238)



Help with file_read - luis_lpv_22 - 20.01.2011

Hi all, I need to read a file with file_read (FileManager plugin) and the native is this:
pawn Код:
file_read(file[],storage[], sizeof(storage));
I did this code, but doesn't work, I don't know that I must set in sizeof(storage)
pawn Код:
new pName[24];
GetPlayerName(playerid, pName, sizeof(pName));
format(file1, sizeof(file1), "scriptfiles/Accounts/%s", pName);
file_read(file1,"Password", pass);
Please help me. Thanks you