SA-MP Forums Archive
samp car id vs sql/enumerator id - 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: samp car id vs sql/enumerator id (/showthread.php?tid=622128)



samp car id vs sql/enumerator id - AnthonyGates - 19.11.2016

Hi guys!

In a nutshell, i have problems with indexing, as you know, sql/samp vehicle ids starts at 1, and array ids starts from 0. Thats OK, but....

How can i get the REAL, CORRECT array(enum maybe?) id from samp car id.

Any ideas, or something else solution?

Thanks!


Re: samp car id vs sql/enumerator id - BroZeus - 19.11.2016

+1 and -1 on index?
I am not sure that I understood you clearly.


Re: samp car id vs sql/enumerator id - AnthonyGates - 19.11.2016

ahh yes, i got it

enumid=sampvehid-1

Solved.