SA-MP Forums Archive
[Tutorial] Business System - 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] Business System (/showthread.php?tid=349466)

Pages: 1 2 3


Re: Business System - Jankingston - 26.05.2014

Nice Tutorial. But it would be more nice if you can explain it more briefly, so beginners can understand it correctly.


Re: Business System - JhnzRep - 27.05.2014

I was thinking about remaking the tut, but with school and not really being into SAMP anymore I am to lazy to do it.


Re: Business System - Ghazal - 27.05.2014

Quote:
Originally Posted by JhnzRep
View Post
I was thinking about remaking the tut, but with school and not really being into SAMP anymore I am to lazy to do it.
Add payday And it will be cool.


Re: Business System - superrobot48 - 28.05.2014

Very Good - bookmarked


Re: Business System - Object - 31.05.2014

Nvm.............


Re: Business System - AndySedeyn - 31.05.2014

And what if the maximum businesses a player can own is 2?
This only applies for one business per player.

Apart from that, nice.


Re: Business System - BleverCastard - 01.06.2014

Quote:
Originally Posted by Bible
View Post
And what if the maximum businesses a player can own is 2?
This only applies for one business per player.

Apart from that, nice.
Then you do another BizID(BizID2 maybe?) and you check if BizID is occupied, if it is, move onto BizID2, if not, select BizID one and set him owner. Continue for BizID2. IF both occupied, stop him from purchasing it.


Re: Business System - AndySedeyn - 01.06.2014

Quote:
Originally Posted by [MP]Ditch
View Post
Then you do another BizID(BizID2 maybe?) and you check if BizID is occupied, if it is, move onto BizID2, if not, select BizID one and set him owner. Continue for BizID2. IF both occupied, stop him from purchasing it.
I know how to do it. I didn't ask him how to make it, I notified him about it.


Re: Business System - Abagail - 01.06.2014

Well, I don't like at all how you say "And here's the x command..."... Tutorials aren't for releasing code its for showing people how TO MAKE the code. How will they learn if you don't explain it?


Re: Business System - DavidSparks - 06.11.2014

I wished this was zCMD I dont know how to change it from YCMD to ZCMD :C


Re: Business System - AndreiWow - 05.09.2015

Code:
D:\server\samp\pawno\include\zcmd.inc(18) : warning 201: redefinition of constant/macro (symbol "COMMAND:%1(%2)")
D:\server\samp\pawno\include\zcmd.inc(21) : warning 201: redefinition of constant/macro (symbol "CMD:%1(%2)")
D:\server\samp\gamemodes\abrffnew.pwn(90) : error 010: invalid function or declaration
D:\server\samp\gamemodes\abrffnew.pwn(336) : warning 217: loose indentation
D:\server\samp\gamemodes\abrffnew.pwn(373) : error 017: undefined symbol "CreateDynamicPickup"
D:\server\samp\gamemodes\abrffnew.pwn(374) : error 017: undefined symbol "CreateDynamicPickup"
D:\server\samp\gamemodes\abrffnew.pwn(673) : warning 235: public function lacks forward declaration (symbol "OnPlayerFullyConnected")
D:\server\samp\gamemodes\abrffnew.pwn(678) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickUpDynamicPickup")
D:\server\samp\gamemodes\abrffnew.pwn(777) : warning 217: loose indentation
D:\server\samp\gamemodes\abrffnew.pwn(923) : warning 202: number of arguments does not match definition
D:\server\samp\gamemodes\abrffnew.pwn(968) : error 017: undefined symbol "DestroyDynamicPickup"
D:\server\samp\gamemodes\abrffnew.pwn(969) : error 017: undefined symbol "DestroyDynamicPickup"
D:\server\samp\gamemodes\abrffnew.pwn(970) : error 017: undefined symbol "CreateDynamicPickup"
D:\server\samp\gamemodes\abrffnew.pwn(971) : error 017: undefined symbol "CreateDynamicPickup"
D:\server\samp\gamemodes\abrffnew.pwn(999) : warning 202: number of arguments does not match definition
D:\server\samp\gamemodes\abrffnew.pwn(1026) : error 017: undefined symbol "DestroyDynamicPickup"
D:\server\samp\gamemodes\abrffnew.pwn(1035) : warning 202: number of arguments does not match definition
D:\server\samp\gamemodes\abrffnew.pwn(1052) : warning 202: number of arguments does not match definition
D:\server\samp\gamemodes\abrffnew.pwn(1063) : error 028: invalid subscript (not an array or too many subscripts): "InsideBiz"
D:\server\samp\gamemodes\abrffnew.pwn(1063) : warning 215: expression has no effect
D:\server\samp\gamemodes\abrffnew.pwn(1063) : error 001: expected token: ";", but found "]"
D:\server\samp\gamemodes\abrffnew.pwn(1063) : error 029: invalid expression, assumed zero
D:\server\samp\gamemodes\abrffnew.pwn(1063) : fatal error 107: too many error messages on one line

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


12 Errors.



Re: Business System - knuckleduster5 - 01.11.2015

Sorry for bump. I wanted to write something about this system.
1. Don't use y_commands. Change y_commands to zcmd.
2. bInsideIcon is very useless, delete it.
3. GameTextForPlayer is very useless, delete it and add CreateDynamic3DTextLabel.
4. Delete "/enter" command and use OnPlayerKeyStateChange.
Known bugs:
Data can't register arithmetic after ID 2.
Sometimes "/createbiz" command doesn't work. (SERVER: Unkown command.)
You will business message on spawn if you use GameTextForPlayer.

Thanks for tutorial, +rep.


Re: Business System - JhnzRep - 19.11.2015

Quote:
Originally Posted by knuckleduster5
View Post
Sorry for bump. I wanted to write something about this system.
1. Don't use y_commands. Change y_commands to zcmd.
2. bInsideIcon is very useless, delete it.
3. GameTextForPlayer is very useless, delete it and add CreateDynamic3DTextLabel.
4. Delete "/enter" command and use OnPlayerKeyStateChange.
Known bugs:
Data can't register arithmetic after ID 2.
Sometimes "/createbiz" command doesn't work. (SERVER: Unkown command.)
You will business message on spawn if you use GameTextForPlayer.

Thanks for tutorial, +rep.
1.No reason to change to ZCMD. YCMD is fine.
2.bInsideIcon can be considered useless, but it stands where the /exit is, so people know where to go out.
3.GameTextForPlayer is shit, I know that..Didn't know it back then...
4.I like /enter more.

Yea and all around the system won't work as it is right now, but with a couple of changes it should be just fine.


Re: Business System - mrkingz - 19.11.2015

D:\Sa-Mp Scripter\working\business.pwn(72) : error 010: invalid function or declaration
D:\Sa-Mp Scripter\working\business.pwn(83) : error 017: undefined symbol "CreateDynamicPickup"
D:\Sa-Mp Scripter\working\business.pwn(84) : error 017: undefined symbol "CreateDynamicPickup"
D:\Sa-Mp Scripter\working\business.pwn(160) : warning 202: number of arguments does not match definition
D:\Sa-Mp Scripter\working\business.pwn(205) : error 017: undefined symbol "DestroyDynamicPickup"
D:\Sa-Mp Scripter\working\business.pwn(206) : error 017: undefined symbol "DestroyDynamicPickup"
D:\Sa-Mp Scripter\working\business.pwn(207) : error 017: undefined symbol "CreateDynamicPickup"
D:\Sa-Mp Scripter\working\business.pwn(20 : error 017: undefined symbol "CreateDynamicPickup"
D:\Sa-Mp Scripter\working\business.pwn(236) : warning 202: number of arguments does not match definition
D:\Sa-Mp Scripter\working\business.pwn(263) : error 017: undefined symbol "DestroyDynamicPickup"
D:\Sa-Mp Scripter\working\business.pwn(272) : warning 235: public function lacks forward declaration (symbol "OnPlayerPickUpDynamicPickup")
D:\Sa-Mp Scripter\working\business.pwn(317) : warning 202: number of arguments does not match definition
D:\Sa-Mp Scripter\working\business.pwn(320) : error 017: undefined symbol "PlayerInfo"
D:\Sa-Mp Scripter\working\business.pwn(320) : warning 215: expression has no effect
D:\Sa-Mp Scripter\working\business.pwn(320) : error 001: expected token: ";", but found "]"
D:\Sa-Mp Scripter\working\business.pwn(320) : error 029: invalid expression, assumed zero
D:\Sa-Mp Scripter\working\business.pwn(320) : fatal error 107: too many error messages on one line

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


12 Errors.


Re: Business System - RockyGamer - 20.11.2015

Really good tutorial, that was exactly what I was looking for! Ty


Re: Business System - TaiRinsuru - 03.07.2016

Theres a bug man!

When you buy a clothes inside, the business gets money.
But when other and its not their business (its yours) it doesnt give. WHAT !