[Tutorial] Business System
#41

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

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

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.
Reply
#44

Very Good - bookmarked
Reply
#45

Nvm.............
Reply
#46

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

Apart from that, nice.
Reply
#47

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.
Reply
#48

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.
Reply
#49

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?
Reply
#50

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

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.
Reply
#52

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.
Reply
#53

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.
Reply
#54

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.
Reply
#55

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

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 !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)