SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 18/03/2017, 08:18 PM   #1
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Posts: 1,123
Reputation: 90
Default Dynamic biz system v2.0

Dynamic biz system v2.0

Hello!
Before the presentation of this filterscript, you have to know this script is a new version of my previous one (here). There is a lot of modifications. So I prefer to made a new thread, let the previous version available (Y_INI version, that's why). I'll take the previous presentation, there is no more feature on the version 2.0 (more feature are coming).


Features:
- Saved biz system : Investor & Biz (MySQL R41)
- 6 type of biz available (Total : 29 interiors)
- Customizable name for each biz
- Deposit/withdraw money on your biz
- Make people pay when they enter in your biz
- Admin commands
- Make your friends investors
- Make your investor earn money

Include:
Code:
#include <a_samp>
#include <a_mysql>
#include <izcmd> // you can also use <zcmd> - Both are working
#include <sscanf2>
#include <foreach>
#include <YSI\y_va>
#include <easyDialog>

Credits to original author for each include.
RCON commands:
/createbiz : Create a biz with an interior, everything are explain IG.
/destroybiz : destroy a biz or every biz
/closestbiz : get the ID of closest biz
/editbiz : Edit a biz like /biz + you can change type & interior
/editinvestor: Edit investor's right of a specific biz
/aeditinvestor: Set an investor for a biz. You need to enter the player's name and not the ID.
/gotobiz : Explicit

Non-RCON commands:
/buybiz : buy a biz
/sellbiz : sell a biz
/biz : manage your biz
/modifinvestor : Edit investor's rights of your biz
/makeinvestor : Make someone an investor
/ibiz : Edit a biz as an investor



Configuration:

- Biz's params
Code:
#define		MAX_BIZ			100							// Number of biz
#define		MAX_BALANCE		1000000			// Max amount of money in a biz
#define		MAX_BIZ_NAME		MAX_PLAYER_NAME*2	// The max lengh of a biz's name
#define		INVALID_BIZ_ID		(MAX_BIZ+10)*2		// Don't change this
- Pickup ID
Code:
#define 	ICON_BIZ_CLOSED			19133
#define		ICON_BIZ_OPEN			1318
#define		ICON_BIZ_PENDING_OPEN		1272
#define		ICON_BIZ_PENDING_CLOSED		19523
#define		ICON_BIZ_INTERIOR		1239
MySQL configuration:
Code:
#define 		MYSQL_HOST        			"localhost" 
#define 		MYSQL_USER        			"root" 
#define 		MYSQL_DATABASE    			"myserver"
#define 		MYSQL_PASSWORD   			""

What changes between version 1.1 & version 2.0 ?
- Switched to MySQL R41
- Minors changes
- Minors & majors bugs solved


Screenshoots:
http://hpics.li/26d9a2b
http://hpics.li/922e065
http://hpics.li/bb7a609
http://hpics.li/cb13e93

Script: https://github.com/Dayrion/Release/b...biz_system.pwn
__________________
Dayrion is offline   Reply With Quote
Old 24/03/2017, 12:43 AM   #2
Kaponi
Little Clucker
 
Kaponi's Avatar
 
Join Date: Mar 2017
Location: Connection Lost
Posts: 31
Reputation: 1
Default Respuesta: Dynamic biz system v2.0

Good Job! +rep
__________________
#Jeli



--------------------------------------------------------------------------
Kaponi is offline   Reply With Quote
Old 24/03/2017, 08:36 AM   #3
Gnik
Little Clucker
 
Join Date: Feb 2017
Location: South Africa
Posts: 6
Reputation: 0
Default Re: Dynamic biz system v2.0

Code:
biz_system.pwn(66) : warning 201: redefinition of constant/macro (symbol "DIALOG(%0)")
biz_system.pwn(701) : warning 202: number of arguments does not match definition
biz_system.pwn(701) : warning 202: number of arguments does not match definition
biz_system.pwn(822) : warning 202: number of arguments does not match definition
biz_system.pwn(822) : warning 202: number of arguments does not match definition
biz_system.pwn(822) : warning 202: number of arguments does not match definition
biz_system.pwn(850) : warning 202: number of arguments does not match definition
biz_system.pwn(873) : warning 202: number of arguments does not match definition
biz_system.pwn(878) : warning 202: number of arguments does not match definition
biz_system.pwn(878) : warning 202: number of arguments does not match definition
biz_system.pwn(938) : warning 202: number of arguments does not match definition
biz_system.pwn(938) : warning 202: number of arguments does not match definition
biz_system.pwn(938) : warning 202: number of arguments does not match definition
biz_system.pwn(965) : warning 202: number of arguments does not match definition
biz_system.pwn(965) : warning 202: number of arguments does not match definition
biz_system.pwn(965) : warning 202: number of arguments does not match definition
biz_system.pwn(1344) : warning 202: number of arguments does not match definition
biz_system.pwn(1361) : warning 202: number of arguments does not match definition
biz_system.pwn(1418) : warning 202: number of arguments does not match definition
biz_system.pwn(1418) : warning 202: number of arguments does not match definition
biz_system.pwn(1435) : warning 202: number of arguments does not match definition
biz_system.pwn(1435) : warning 202: number of arguments does not match definition
biz_system.pwn(1436) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:           3884 bytes
Code size:           310500 bytes
Data size:           773968 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 1104736 bytes

23 Warnings.
[Finished in 1.3s]
Gnik is offline   Reply With Quote
Old 24/03/2017, 10:47 AM   #4
faizal16
Little Clucker
 
Join Date: Feb 2014
Location: Bandung,Indonesia
Posts: 7
Reputation: 0
Default Re: Dynamic biz system v2.0

GOOD JOB REP
faizal16 is offline   Reply With Quote
Old 24/03/2017, 01:21 PM   #5
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Posts: 1,123
Reputation: 90
Default Re: Dynamic biz system v2.0

Quote:
Originally Posted by Kaponi View Post
Good Job! +rep
Quote:
Originally Posted by faizal16 View Post
GOOD JOB REP
Thanks for your comments, I appreciate!
The main purpose of this filterscript is make a completly dynamic biz filterscript. Interior, objects, everything you can, make it dynamic and easy to use! Even for a begginner who wants a full-made FS, even for someone who have ideas of creations for a biz.
An update is coming!

Quote:
Originally Posted by Gnik View Post
Code:
biz_system.pwn(66) : warning 201: redefinition of constant/macro (symbol "DIALOG(%0)")
biz_system.pwn(701) : warning 202: number of arguments does not match definition
biz_system.pwn(701) : warning 202: number of arguments does not match definition
biz_system.pwn(822) : warning 202: number of arguments does not match definition
biz_system.pwn(822) : warning 202: number of arguments does not match definition
biz_system.pwn(822) : warning 202: number of arguments does not match definition
biz_system.pwn(850) : warning 202: number of arguments does not match definition
biz_system.pwn(873) : warning 202: number of arguments does not match definition
biz_system.pwn(878) : warning 202: number of arguments does not match definition
biz_system.pwn(878) : warning 202: number of arguments does not match definition
biz_system.pwn(938) : warning 202: number of arguments does not match definition
biz_system.pwn(938) : warning 202: number of arguments does not match definition
biz_system.pwn(938) : warning 202: number of arguments does not match definition
biz_system.pwn(965) : warning 202: number of arguments does not match definition
biz_system.pwn(965) : warning 202: number of arguments does not match definition
biz_system.pwn(965) : warning 202: number of arguments does not match definition
biz_system.pwn(1344) : warning 202: number of arguments does not match definition
biz_system.pwn(1361) : warning 202: number of arguments does not match definition
biz_system.pwn(1418) : warning 202: number of arguments does not match definition
biz_system.pwn(1418) : warning 202: number of arguments does not match definition
biz_system.pwn(1435) : warning 202: number of arguments does not match definition
biz_system.pwn(1435) : warning 202: number of arguments does not match definition
biz_system.pwn(1436) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:           3884 bytes
Code size:           310500 bytes
Data size:           773968 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 1104736 bytes

23 Warnings.
[Finished in 1.3s]
Seems you have already defined the macro DIALOG or you don't have easyDialog in include : http://forum.sa-mp.com/showpost.php?...89&postcount=1
__________________
Dayrion 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
[FilterScript] Dynamic House System v0.5 (w/Dialog Builder System+Customizable) ABKPot Filterscripts 19 27/01/2015 05:56 PM
[FilterScript] Dynamic Box [Vip System/Help System/2 previous script all in dBox!] JaKe Elite Filterscripts 6 28/11/2014 04:48 AM
[FilterScript] Jueix's bank system and Dynamic ATM system. jueix Filterscripts 23 30/03/2014 11:44 PM
[FilterScript] DWS - Dynamic Weapon System (Gun object, Saving system,...More) JusstinRoller Filterscripts 15 31/07/2013 10:02 AM


All times are GMT. The time now is 08:09 PM.


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