SA-MP Forums Archive
[Tutorial] How to make a dealership! - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to make a dealership! (/showthread.php?tid=452843)

Pages: 1 2


Re: How to make a dealership! - JimmyCh - 23.08.2013

Yea you did :3 no problem


Re: How to make a dealership! - Tuntun - 23.08.2013

Nice but it won't save vehicles after buy it.


Re: How to make a dealership! - JimmyCh - 23.08.2013

Of course it won't.
You need to edit it to your system and make the player owner of that car.

I won't be scripting player data, it would be your thing to add that to this script


Re: How to make a dealership! - Tuntun - 23.08.2013

I have made a saving system can you edit in it?


Re: How to make a dealership! - JimmyCh - 23.08.2013

Do you mean like, I help you add this system to your saving?


Re: How to make a dealership! - Tuntun - 08.09.2013

yea..


Re: How to make a dealership! - JimmyCh - 08.09.2013

It's quite simple, just when you create that vehicle, set the player who bought it as the owner and save it.
I don't know your saving system but try to make it on your own


Re: How to make a dealership! - Tuntun - 08.09.2013

My saving system has sent to you.


Re: How to make a dealership! - grizzley - 16.11.2013

This really helpfull... thank you!


Re: How to make a dealership! - TahaAsif12 - 16.11.2013

Good TUT Man.


Re: How to make a dealership! - Nucky - 09.03.2014

Thanks, Jimmy. Very good

Dil' on Italy Mafia here


Re: How to make a dealership! - iCurse - 03.06.2014

Good Job and Well Done!

You always do all what i need!


Re: How to make a dealership! - Sammi_Jackson - 24.07.2014

I've scripted this to my GM, but for some reason when i go IG it says "ERROR: Unknown Command". Any ideas what it could be?


Re: How to make a dealership! - Sojo12 - 25.07.2014

Easily understandable and very good explanation.Great JOB!


Re : How to make a dealership! - Lexus95 - 25.07.2014

Euh, i tested it now, but when i do /buycar and i chose a bullet for example it' dosent spawn, or even say if i don't have enough cash ? any idea why is that ?


Re: How to make a dealership! - Sammi_Jackson - 27.07.2014

Very nice turorial i've took some of your code and added alot a things, like vehicles at the dealership, pickups, 3d labels and ability to sell the cars again. Heres a link if you want to see it also i gave you credits in the description
https://www.youtube.com/watch?v=k9cl...ture=autoshare


Re: How to make a dealership! - AndreiWow - 29.12.2016

The problem is, I want a tutorial that will show how to save them too :/


Re: How to make a dealership! - Djean - 29.12.2016

Pretty basic tutorial but useful for people who need to get a head start on a dealership project, good job.


Re: How to make a dealership! - JohnFlores - 24.07.2017

C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(62) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(64) : error 017: undefined symbol "funcidx"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(65) : error 017: undefined symbol "funcidx"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(66) : error 017: undefined symbol "funcidx"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(6 : error 017: undefined symbol "CallLocalFunction"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(83) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandText")
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(85) : error 017: undefined symbol "CallLocalFunction"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(94) : error 017: undefined symbol "tolower"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(96) : warning 217: loose indentation
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(96) : error 017: undefined symbol "format"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(96) : warning 202: number of arguments does not match definition
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(96) : warning 202: number of arguments does not match definition
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(96) : warning 202: number of arguments does not match definition
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(97) : warning 217: loose indentation
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(9 : warning 217: loose indentation
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(102) : error 017: undefined symbol "CallLocalFunction"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(104) : error 017: undefined symbol "CallLocalFunction"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(10 : error 017: undefined symbol "CallLocalFunction"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\pawno\include\zcmd.inc(110) : error 017: undefined symbol "CallLocalFunction"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(5) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(10) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(20) : error 017: undefined symbol "GetPlayerMoney"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(21) : error 017: undefined symbol "SendClientMessage"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(22) : error 017: undefined symbol "GivePlayerMoney"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(24) : error 017: undefined symbol "GetPlayerPos"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(25) : error 017: undefined symbol "GetPlayerFacingAngle"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(26) : error 017: undefined symbol "CreateVehicle"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(30) : error 017: undefined symbol "GetPlayerMoney"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(31) : error 017: undefined symbol "SendClientMessage"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(32) : error 017: undefined symbol "GivePlayerMoney"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(34) : error 017: undefined symbol "GetPlayerPos"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(35) : error 017: undefined symbol "GetPlayerFacingAngle"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(36) : error 017: undefined symbol "CreateVehicle"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(40) : error 017: undefined symbol "GetPlayerMoney"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\DealerShip.pwn(41) : error 017: undefined symbol "SendClientMessage"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
This Error Or NO?