how to store a string in a file with more than 4 chars
#6

this is in gamemodeinit
Код:
servinf = fopen("serva",io_read);
while(fread(servinf,string,200,false))
	{
	strpack(servi[zeile], string[0],256);
	print(string[0]);
	zeile = zeile +1;
	}
strpack(hbi[0][25],servi[2],256);
fclose(servinf);
and this in the gamemodeexit to write the code
Код:
new string[200];
servinf = fopen("serva",io_write);
strunpack(string,hbi[0][25],256);
format(string,200,"%s\r\n",string);
fwrite(servinf,string);
fclose(servinf);
Reply


Messages In This Thread
how to store a string in a file with more than 4 chars - by fredl - 22.02.2009, 14:56
Re: how to store a string in a file with more than 4 chars - by Lewwy - 22.02.2009, 14:57
Re: how to store a string in a file with more than 4 chars - by fredl - 22.02.2009, 14:58
Re: how to store a string in a file with more than 4 chars - by Lewwy - 22.02.2009, 14:59
Re: how to store a string in a file with more than 4 chars - by yom - 22.02.2009, 15:03
Re: how to store a string in a file with more than 4 chars - by fredl - 22.02.2009, 15:04

Forum Jump:


Users browsing this thread: 1 Guest(s)