[FilterScript] Business system.
#1

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
Reply
#2

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

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

Whatever it maybe ur awesome +rep
Reply
#5

Thank you for the feedback .

Feel free to use it.
Reply
#6

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

Look Good
Not Tested Yet,
Reply
#8

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
Reply
#9

@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.
Reply
#10

Nice
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)