So I used reality dayz package for a very long time. They have a very good working donator gear package with datavase function. I thought it would be cool and nice to have that in the epoch package aswell.
I'm not good at arma coding, I do understand the code when reading it but thats it.
Maybe someone here can help or maybe even the epoch dev crew wants this in a release ?
PlayerLogin.sqf
// Check custom inventory for new charactersif(_model =="")then{
_key = format["CHILD:999:select replace(cl.`inventory`, '""', '""""') inventory, replace(cl.`backpack`, '""', '""""') backpack, replace(coalesce(cl.`model`, 'Survivor2_DZ'), '""', '""""') model from `cust_loadout` cl join `cust_loadout_profile` clp on clp.`cust_loadout_id` = cl.`id` where clp.`unique_id` = '?':[%1]:",str(_playerID)];
_data ="HiveEXT" callExtension _key;//Process result
_result = call compile format ["%1", _data];
_status = _result select0;if(_status =="CustomStreamStart")then{if((_result select1)>0)then{
_data ="HiveEXT" callExtension _key;
_result = call compile format ["%1", _data];
_inventory = call compile (_result select0);
_backpack = call compile (_result select1);
_model = call compile (_result select2);};};};
create table ifnot exists cust_loadout (
id bigint unsignednotnull auto_increment,
inventory varchar(2048)notnull,
backpack varchar(2048)notnull,
model varchar(100)defaultnull,
primary key pk_cust_loadout (id)) character set utf8 engine=InnoDB;
Question
marsjee
Hello,
So I used reality dayz package for a very long time. They have a very good working donator gear package with datavase function. I thought it would be cool and nice to have that in the epoch package aswell.
I'm not good at arma coding, I do understand the code when reading it but thats it.
Maybe someone here can help or maybe even the epoch dev crew wants this in a release ?
PlayerLogin.sqf
Anybody that can help me with this? Please let me know :)
Link to comment
Share on other sites
38 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now