fopen problem
#6

pawn Код:
format(string,sizeof(string), "ladmin/%s.save", sendername);
make the size of your sendername MAX_PLAYER_NAME ( smaller )
make sure there is a 'ladmin' folder in your scriptfiles folder.
try changing the file extension to .cfg, or .ini
make sure you check the file has been opened before writing anything to it.
don't forget the ';' after the fopen command
pawn Код:
new string[128],sendername[MAX_PLAYER_NAME];

...
format(string,sizeof(string), "ladmin/%s.cfg", sendername);
new File:news = fopen(string,io_write);
if(news)
{
     // you will need to put your file operations here
     fclose(news);
}
Reply


Messages In This Thread
fopen problem - by CSMajor - 16.10.2010, 01:13
Re: fopen problem - by Rachael - 16.10.2010, 01:44
Re: fopen problem - by CSMajor - 16.10.2010, 01:49
Re: fopen problem - by Rachael - 16.10.2010, 01:56
Re: fopen problem - by CSMajor - 16.10.2010, 02:19
Re: fopen problem - by Rachael - 16.10.2010, 02:39
Re: fopen problem - by CSMajor - 16.10.2010, 02:44

Forum Jump:


Users browsing this thread: 1 Guest(s)