[Help] File Functions
#1

So, im doing Vehicle Register/License plate system for my gamemode.
I made it that when you enter the text for your plate it will save in the file vehplates.cfg

Код:
if(!fexist("vehplates.cfg")) fcreate("vehplates.cfg");
new File: file = fopen("vehplates.cfg", io_append), stringplate[128];
format(stringplate, sizeof(stringplate), "%d|{FF0000}%s", VehicleId, inputtext);
fwrite(file, stringplate);
fclose(file);
and that works. Now I'm at the point where I have to load the file OnVehicleSpawn
Can someone help me out, please?
Reply


Messages In This Thread
[Help] File Functions - by Haides - 23.11.2014, 18:10
Re: [Help] File Functions - by Haides - 24.11.2014, 07:12

Forum Jump:


Users browsing this thread: 1 Guest(s)