Quote:
Originally Posted by Jonny5
pawn Код:
// example SaveToFile("objs.txt","CreateObject(param, param, param, param...);");
stock SaveToFile(path[],text[]){ new File:handle = fopen(path, io_append); if(handle) { new sOut[1024]; format(sOut,1024,"%s\r\n",text); fwrite(handle,sOut); fclose(handle); return 1; } return 0; }
|
How would I go about loading the saved objects? I'm new to SA-MP's default file functions...