18.10.2011, 17:51
Quote:
It should handle it like the filesystem of the Operating System would handle it. |
Quote:
It only crashed cause there was file_delete and the file didn't exist. Should build in a check or sth... |
Код:
#define file_delete(%1) if(file_exists(%1) { file_delete(%1); }
Quote:
i use file_move for moving Bot.rec's to a folder after recording. Код:
StopRecordingPlayerData(playerid); SendClientMessageEx(playerid,COLOR_RED2, "Stopped recording"); new movedir[50]; format(string, sizeof(string), "scriptfiles/%s.rec", recording[playerid]); // <= REC MISSING // string was defined at top of OnPlayerCommandText // recording[playerid] is the filename of Bot-Recording file format(movedir, sizeof(movedir), "scriptfiles/Bot-Records/%s", recording[playerid]); // <= REC MISSING file_move(string,movedir); |