22.02.2009, 15:04
this is in gamemodeinit
and this in the gamemodeexit to write the code
Код:
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);
Код:
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);