vehicle system
#7

It has been a while since the last time I worked with y_ini so my knowledge is a bit rusty.

- You can't put spaces in your line names. So: "Color 1" should become "Color1". (source: https://sampforum.blast.hk/showthread.php?tid=597411)
- I don't see the point of that for-loop.
- Don't use INI_Write... When you're loading data.
- This is the correct syntax for forwarding your public function like that (source: http://forum.sa-mp.com/showpost.php?...3&postcount=30):
PHP код:
forward public SomeFunction();
SomeFunction() { } 
- Are you not going to save the vehicle's angle?

- This seems very redundant to me:
PHP код:
VehicleInfo[vehicleID][vLocked] = INI_Int("Locked") == true false
Just load it like all the other values:
PHP код:
INI_Int("Locked"VehicleInfo[vehicleID][vLocked]); 
Reply


Messages In This Thread
vehicle system - by saffierr - 01.01.2016, 02:29
Re: vehicle system - by Kucin666 - 01.01.2016, 02:35
Re: vehicle system - by AndySedeyn - 01.01.2016, 02:36
Re: vehicle system - by saffierr - 01.01.2016, 02:50
Re: vehicle system - by AndySedeyn - 01.01.2016, 02:59
Re: vehicle system - by saffierr - 01.01.2016, 03:58
Re: vehicle system - by AndySedeyn - 01.01.2016, 12:44
Re: vehicle system - by saffierr - 01.01.2016, 14:17

Forum Jump:


Users browsing this thread: 1 Guest(s)