Help with a stock.
#1

Hi guys, I am pretty much noob at scripting so if you find something really stupid, that's the reason. I really did want to solve this by myself but after two hours I decided to just give up and ask for help. So here I am.

I am using a file management plugin called 'dFile' and I tried to create a stock which will open a specific user file, read a specific line, save and close the file and return the line. I didn't get an error but I do have one warning and the stock doesn't seem to work also;

PHP код:
warning 215expression has no effect 
PHP код:
stock GetInfo(targetidstring)
{
new 
variable[128];
format(variable128"%s.ini"GetName(targetid));
new 
message[256];
dfile_Open(variable);
message dfile_ReadString("%s"), string// The line which gives me the warning.
dfile_SaveFile();
dfile_CloseFile();
return 
message;

Any help is appreciated!
Reply


Messages In This Thread
Help with a stock. - by xRandomGuy - 10.09.2012, 12:51
Re: Help with a stock. - by ReneG - 10.09.2012, 13:27
Re: Help with a stock. - by xRandomGuy - 10.09.2012, 15:37
Re: Help with a stock. - by mamorunl - 10.09.2012, 15:53
Re: Help with a stock. - by yanir3 - 11.09.2012, 17:02

Forum Jump:


Users browsing this thread: 1 Guest(s)