30.07.2010, 13:26
Quote:
public LoadStuff() { new arrCoords[4][64]; new strFromFile2[256]; new File: file = fopen("stuff.ini", io_read); if (file) { fread(file, strFromFile2); split(strFromFile2, arrCoords, ','); Jackpot = strval(arrCoords[0]); fclose(file); } else { GameModeExit(); } return 1; } public SaveStuff() { new coordsstring[256]; format(coordsstring, sizeof(coordsstring), "%d", Jackpot); new File: file2 = fopen("stuff.ini", io_write); fwrite(file2, coordsstring); fclose(file2); return 1; } |
2. What will happen if i change new coordsstring[256]; 256 to 128 ? nothing ?