SA-MP Forums Archive
[FilterScript] 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Business system. (/showthread.php?tid=496441)



Business system. - Equuuuin0X - 22.02.2014

Introdution:
This is my 3rd filterscript

I've been wondering why there aren't simple business system, yet in the forum,and so I've decided to make one. been working on this for about 3 weeks (was a hard work on understanding tutorials)

Let's get started

Commands:
admin:
/createbiz - creates the bizz
/deletebiz - deletes the bizz
/gotobiz - go to any bizz
/asellbizz - sells any bizz
/bused - see the bizz info
/bedit - edit the bizz info

players:
/enter - enters
/exit - exits
/sellbiztomarket - sells a bizz
/buybiz - buys a bizz
/lockb - locking the bizz
/buyproducts - buying bizz's products
/vault - checking bizz's vault
/bizzhelp - showing the business system help

known bug(s):
/lockb is bugged atm, something is wrong with the values
/buyproducts is absolutely bugged, you may remove it as I cannot really fix it.

download link:

http://pastebin.com/6iKLYUgE

credits:
me - scripting/fixing the script
all includes owner
samp forum - tutorials


Re: Business system. - Krisna - 22.02.2014

hmm, this script from "tutorial by faff making business system" or you get from zgaming ? ya?


Re: Business system. - Equuuuin0X - 22.02.2014

I made it, but I took all credits to all tutorials owner.

So, credits shouldnt be at me at all.

That's why I didn't mention, I scripted it all.


Re: Business system. - Hax0rm - 22.02.2014

Whatever it maybe ur awesome +rep


Re: Business system. - Equuuuin0X - 22.02.2014

Thank you for the feedback .

Feel free to use it.


Re: Business system. - XStormiest - 22.02.2014

Hm... Some advices:

Don't use pragma tabsize: try to make your identitation better
Remove #includes that you don't even use: for example Y_INi
I have seen this into your code:
Code:
PlayerInfo[playerid][Cash] = floatstr(params...)
That is just an example, but i what i mean is: don't set a variable type the second types
let me exaplain:
Code:
enum myEnum
{
    IntVar,
    Float: FloatVar,
    StringVar [ 128 ],
    bool: boolVar
}
new PlayerInfo[MAX_PLAYERS][myEnum];
You see? i declared the types into the enum, and when i use it the copiler is smart enough to see that i already declared the type once, so i don't need make it twice...

Anyway, good job for a first script like this


Re: Business system. - mahardika - 22.02.2014

Look Good
Not Tested Yet,


Re: Business system. - Kyance - 22.02.2014

Code:
[11:41:25] Patriks (Kyance): pls
[11:41:34] Patriks (Kyance): [11:10] Flaken Roger | EquinoX_: 

<<< I MADE
BIZZ
SYSTEM
[11:41:35] Patriks (Kyance): "I made"
[11:41:38] Patriks (Kyance): >tutorials many
[11:41:42] Patriks (Kyance): >not everything is made by you there
[11:41:43] Patriks (Kyance): kkk
[11:41:46] Flaken Roger | EquinoX_: idc
[11:41:49] Flaken Roger | EquinoX_: idc
[11:41:50] Flaken Roger | EquinoX_: idc
[11:41:50] Flaken Roger | EquinoX_: idc
[11:41:51] Flaken Roger | EquinoX_: idc
mlol


Re: Business system. - Equuuuin0X - 22.02.2014

@stormies

well, according the tutorials i've learnt.

i need to use the pragma tabsize

well y_ini is primary, use dini for the first.

I don't know what else to say, but this is what I get from most of tutorials.

thank you tho.


Re : Business system. - TunisianoGamer - 22.02.2014

Nice