SA-MP Forums Archive
[Help] fopen fclose f everything - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] fopen fclose f everything (/showthread.php?tid=144311)



[Help] fopen fclose f everything - Niixie - 26.04.2010

Hey, i want to make some sort of vehicle system (ownership). I want all the vehicles in the same file and in one line a person vehiclemodel, color, pos etc. be.

The only way i can do that is with using fopen and fread fclose. i got so far.
when the server starts up and loads all vehicles it should spawn all players vehicle from that file.

E.g. This is the file
Quote:
Originally Posted by File for the vehicles
1, 520, 0, 3, 1, 1, 1, 1
unique id Veh model X Y Z A color1 color2
Theres the players unique id, the vehicles model id, x, y, z, a, color1, color2.
I dont need the unique player id in CreateVehicle. so how do i get all other things than that?

Thank you,
Niixie