SA-MP Forums Archive
stock function or public - 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: stock function or public (/showthread.php?tid=223121)



stock function or public - NewbBeginner - 08.02.2011

I want to know that how to make stock or public function for player, that adds vehicle into database and also creates that same vehicle ingame.

Im using mysql.

Something like this:
stock CreateVehicleEx(playerid, Name, Price, Owner)

And it'll create vehicle ingame, also will add vehicle into 'cars' database
please help


Re: stock function or public - California - 08.02.2011

Well, I'm sure that it's not a callback, so you would use the 'stock function', since 'CreateVehicleEx' would be a function.


Re: stock function or public - NewbBeginner - 08.02.2011

Well, function then.

Like If i use command /sultan, then it 'll make IG car and into database