SA-MP Forums Archive
Help Me.. - 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)
+--- Thread: Help Me.. (/showthread.php?tid=627771)



Help Me.. - xogud807 - 01.02.2017

I'm going to run the loop for all the cars, check the car owner, return the ID, and then use that ID to get the license plate out. Is there any way?


Re: Help Me.. - AndreiWow - 01.02.2017

Something like

#define MAXCARS 200

PHP Code:
for(new 0MAXCARSi++)
{
 
//code here

But you can load the vehicles once using the loop then you will be able to use the vehicleid to get the infos so you dont have to loop more times.

Depends on what you want to do with those infos, also you will need to use enumerators.


How do you store vehicles? ini file or MySQL?


Re: Help Me.. - xogud807 - 01.02.2017

Quote:
Originally Posted by AndreiWow
View Post
Something like

#define MAXCARS 200

PHP Code:
for(new 0MAXCARSi++)
{
 
//code here

But you can load the vehicles once using the loop then you will be able to use the vehicleid to get the infos so you dont have to loop more times.

Depends on what you want to do with those infos, also you will need to use enumerators.


How do you store vehicles? ini file or MySQL?
from.
I am going to use the version of mysql r38 for car storage