SA-MP Forums Archive
I'm a noob scripter but i've learned alot...need help. - 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: I'm a noob scripter but i've learned alot...need help. (/showthread.php?tid=262680)



I'm a noob scripter but i've learned alot...need help. - Dokins - 19.06.2011

Hello, Okay, I was wondering how I would add License plates to vehicles in the script, however, I could do this if it wasnt for the MySQL. I want to know how to, that way I can learn so dont go, learn other stuff etc. I've learned alot already. How do I add it so I can edit the specific vehicles plate in the database?


Re: I'm a noob scripter but i've learned alot...need help. - Scenario - 19.06.2011

As you store vehicles into the database, depending on your system it may be a good idea to link "database vehicle ID's" to the in-game vehicle ID's. This way, you can do such a thing as change the specific plate characters for the vehicle ID in the database and also in-game. Make sense?


Re: I'm a noob scripter but i've learned alot...need help. - Dokins - 19.06.2011

I understand, but actually doing that is the problem.


Re: I'm a noob scripter but i've learned alot...need help. - Scenario - 19.06.2011

What about a multi-dimensional array variable or something? Example:

pawn Код:
Vehicle[dbid][servid]