23.11.2014, 18:10
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
and that works. Now I'm at the point where I have to load the file OnVehicleSpawn
Can someone help me out, please?
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);
Can someone help me out, please?