01.01.2016, 12:44
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):
- Are you not going to save the vehicle's angle?
- This seems very redundant to me:
Just load it like all the other values:
- 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() { }
- This seems very redundant to me:
PHP код:
VehicleInfo[vehicleID][vLocked] = INI_Int("Locked") == 1 ? true : false;
PHP код:
INI_Int("Locked", VehicleInfo[vehicleID][vLocked]);