SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 05/09/2015, 12:28 PM   #91
AndreiWow
High-roller
 
AndreiWow's Avatar
 
Join Date: Nov 2014
Location: Romania, Bucharest
Posts: 1,048
Reputation: 48
Default Re: Business System

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 (c) 1997-2006, ITB CompuPhase


12 Errors.
AndreiWow is offline   Reply With Quote
Old 01/11/2015, 12:30 AM   #92
knuckleduster5
Little Clucker
 
knuckleduster5's Avatar
 
Join Date: Oct 2015
Posts: 45
Reputation: 11
Default Re: Business System

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.
knuckleduster5 is offline   Reply With Quote
Old 19/11/2015, 01:57 PM   #93
JhnzRep
Huge Clucker
 
JhnzRep's Avatar
 
Join Date: Jan 2012
Location: USA/Slovakia
Posts: 462
Reputation: 65
Default Re: Business System

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.
__________________
[center]Creations:

[Tutorial]
Business System
JhnzRep is offline   Reply With Quote
Old 19/11/2015, 07:30 PM   #94
mrkingz
Little Clucker
 
mrkingz's Avatar
 
Join Date: Nov 2014
Posts: 26
Reputation: 0
Default Re: Business System

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 (c) 1997-2006, ITB CompuPhase


12 Errors.
mrkingz is offline   Reply With Quote
Old 20/11/2015, 12:44 PM   #95
RockyGamer
Big Clucker
 
Join Date: Sep 2014
Location: Croatia, Zagreb
Posts: 53
Reputation: 3
Default Re: Business System

Really good tutorial, that was exactly what I was looking for! Ty
RockyGamer is offline   Reply With Quote
Old 03/07/2016, 02:37 PM   #96
TaiRinsuru
Big Clucker
 
TaiRinsuru's Avatar
 
Join Date: Oct 2015
Location: Reputation : 100000
Posts: 137
Reputation: 12
Default Re: Business System

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 !
__________________
Come and join now

Discord : https://discord.gg/GRFeDvB
TaiRinsuru is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Business System Davman Scripting Help 0 28/04/2012 01:57 PM
Business System Vertical-Roleplay Scripting Help 2 20/04/2012 06:17 AM
Business system maxas Help Archive 6 10/12/2010 03:08 PM
Business System? Luis_Leone Help Archive 2 01/08/2010 09:58 PM


All times are GMT. The time now is 05:17 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.