Jump to content

Search the Community

Showing results for tags 'public variable'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • BOHEMIA INTERACTIVE
    • BOHEMIA INTERACTIVE - NEWS
    • BOHEMIA INTERACTIVE - JOBS
    • BOHEMIA INTERACTIVE - GENERAL
  • FEATURED GAMES
    • Arma Reforger
    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
    • PROJECT LUCIE
  • OTHER BOHEMIA GAMES
    • ARGO
    • TAKE ON MARS
    • TAKE ON HELICOPTERS
    • CARRIER COMMAND: GAEA MISSION
    • ARMA: ARMED ASSAULT / COMBAT OPERATIONS
    • ARMA: COLD WAR ASSAULT / OPERATION FLASHPOINT
    • IRON FRONT: LIBERATION 1944
    • BACK CATALOGUE
  • OFFTOPIC
    • OFFTOPIC
  • Die Hard OFP Lovers' Club's Topics
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics
  • 4th Infantry Brigade's Recruitment
  • 11th Marine Expeditionary Unit OFFICIAL | 11th MEU(SOC)'s 11th MEU(SOC) Recruitment Status - OPEN
  • Legion latina semper fi's New Server Legion latina next wick
  • Legion latina semper fi's https://www.facebook.com/groups/legionlatinasemperfidelis/
  • Legion latina semper fi's Server VPN LEGION LATINA SEMPER FI
  • Team Nederland's Welkom bij ons club
  • Team Nederland's Facebook
  • [H.S.O.] Hellenic Special Operations's Infos
  • BI Forum Ravage Club's Forum Topics
  • Exilemod (Unofficial)'s General Discussion
  • Exilemod (Unofficial)'s Scripts
  • Exilemod (Unofficial)'s Addons
  • Exilemod (Unofficial)'s Problems & Bugs
  • Exilemod (Unofficial)'s Exilemod Tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Green Sea
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • TKO's Cam Lao Nam
  • MSOF A3 Wasteland's Server Game Play Features
  • MSOF A3 Wasteland's Problems & Bugs
  • MSOF A3 Wasteland's Maps in Rotation
  • SOS GAMING's Server
  • SOS GAMING's News on Server
  • SOS GAMING's Regeln / Rules
  • SOS GAMING's Ghost-Town-Team
  • SOS GAMING's Steuerung / Keys
  • SOS GAMING's Div. Infos
  • SOS GAMING's Small Talk
  • NAMC's Topics
  • NTC's New Members
  • NTC's Enlisted Members
  • The STATE's Topics
  • CREATEANDGENERATION's Intoduction
  • CREATEANDGENERATION's HAVEN EMPIRE (NEW CREATORS COMMUNITY)
  • HavenEmpire Gaming community's HavenEmpire Gaming community
  • Polska_Rodzina's Polska_Rodzina-ARGO
  • Carrier command tips and tricks's Tips and tricks
  • Carrier command tips and tricks's Talk about carrier command
  • ItzChaos's Community's Socials
  • Photography club of Arma 3's Epic photos
  • Photography club of Arma 3's Team pics
  • Photography club of Arma 3's Vehicle pics
  • Photography club of Arma 3's Other
  • Spartan Gamers DayZ's Baneados del Servidor
  • Warriors Waging War's Vigor
  • Tales of the Republic's Republic News
  • Operazioni Arma Italia's CHI SIAMO
  • [GER] HUSKY-GAMING.CC / Roleplay at its best!'s Starte deine Reise noch heute!
  • empire brotherhood occult +2349082603448's empire money +2349082603448
  • NET88's Twitter
  • DayZ Italia's Lista Server
  • DayZ Italia's Forum Generale

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber (xmpp)


Skype


Biography


Twitter


Google+


Youtube


Vimeo


Xfire


Steam url id


Raptr


MySpace


Linkedin


Tumblr


Flickr


XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 2 results

  1. I used the example in http://www.armaholic.com/forums.php?m=posts&q=35771 but it is normal when I go in, but when new players enter the server, they will all remove the equipment and cycle through the equipment. How to solve this? After the player enters, all players are naked! How can I solve this problem? initserver.sqf waitUntil {time > 0}; // --------------------------------------------------------------------checking the database----------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- "un_database_check" addPublicVariableEventHandler { private ["_packet"]; _packet = _this select 1; _dataplayrowner = _packet select 0; _dataplayrname = _packet select 1; _dataplayruid = _packet select 2; _datanamearray = format ["%1_%2_mycustommissionname", _dataplayrname, _dataplayruid]; _databasename = _datanamearray; _inidbiUN = ["new", _databasename] call OO_INIDBI; _databasefind = "exists" call _inidbiUN; // ------------------------------------------------------cant find the database saveing new players name and uid--------------------------------------------------- if (!_databasefind) then { ["write", ["INFO", "Name", _dataplayrname]] call _inidbiUN; ["write", ["INFO", "UID", _dataplayruid]] call _inidbiUN; "welcome new spawn" remoteExec ["hint"]; }; // --------------------------------------------------------found the database now loading data to send to player--------------------------------------------------- if (_databasefind) then { "found the database" remoteExec ["hint"]; _readpos = ["read", ["POSITION", "Position", []]] call _inidbiUN; _readdir = ["read", ["POSITION", "Direction", ""]] call _inidbiUN; _readdamage = ["read", ["INFO", "Health", ""]] call _inidbiUN; _readloadout = ["read", ["GEAR", "Loadout", []]] call _inidbiUN; un_database_load = [_readpos, _readdir, _readdamage, _readloadout]; _dataplayrowner publicVariableClient "un_database_load"; }; un_database_check = nil; }; // --------------------------------------------------player sent save game data to server - saving it to database-------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- "un_database_save" addPublicVariableEventHandler { private ["_packet"]; _packet = _this select 1; _datanamearray = format ["%1_%2_mycustommissionname", _packet select 0, _packet select 1]; _databasename = _datanamearray; _inidbiUN = ["new", _databasename] call OO_INIDBI; ["write", ["INFO", "Name", _packet select 0]] call _inidbiUN; ["write", ["INFO", "UID", _packet select 1]] call _inidbiUN; ["write", ["POSITION", "Position", _packet select 2]] call _inidbiUN; ["write", ["POSITION", "Direction", _packet select 3]] call _inidbiUN; ["write", ["INFO", "Health", _packet select 4]] call _inidbiUN; ["write", ["GEAR", "Loadout", _packet select 5]] call _inidbiUN; "Progress Saved" remoteExec ["hint"]; }; // MrJizz - Factionfinderdotcom initplayerlocal.sqf waitUntil {time > 10}; // -------------------------------------------------------send name and uid to server to check for database-------------------------------------------------------- if (!isNil "un_database_check") then { un_database_check = nil; }; sleep 1; if (isNil "un_database_check") then { _dataplayrowner = clientOwner; _dataplayrname = profileName; _dataplayruid = getPlayerUID player; un_database_check = [_dataplayrowner,_dataplayrname,_dataplayruid]; publicVariableServer "un_database_check"; }; // ------------------------------------------------------server found database and now sent us the data to load---------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- "un_database_load" addPublicVariableEventHandler { private ["_ppacket"]; _ppacket = _this select 1; _readpos = _ppacket select 0; _readdir = _ppacket select 1; _readdamage = _ppacket select 2; _readloadout = _ppacket select 3; _passtheparcel = [_readpos, _readdir, _readdamage, _readloadout]; _Null = _passtheparcel call FN_loaddata; }; // -----------------------------------------------applying the data sent to player - magazine loaded work around------------------------------------------------- FN_loaddata = { params ["_readpos", "_readdir", "_readdamage", "_readloadout"]; hint "all your shit has loaded"; // Clear player gear removeAllAssignedItems player; removeAllItems player; clearAllItemsFromBackpack player; removeBackpack player; removeUniform player; removeVest player; removeHeadgear player; removeGoggles player; removeAllWeapons player; removeAllPrimaryWeaponItems player; removeAllHandgunItems player; cash = 0; killcount = 0; // Add player gear player setPosATL _readpos; player setDir _readdir; player setDamage _readdamage; player setUnitLoadout _readloadout; un_database_load = nil; publicVariable "un_database_load"; }; // ---------------------------------------------------------request to save game - send data to server------------------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------------------------------------------------------- UN_savedata = { _dataplayrname = profileName; _dataplayruid = getPlayerUID player; _dataplayrpos = getPosATL player; _dataplayrdir = direction player; _dataplayrdamage = damage player; _dataplayrloadout = getUnitLoadout player; un_database_save = [_dataplayrname, _dataplayruid, _dataplayrpos, _dataplayrdir, _dataplayrdamage, _dataplayrloadout]; publicVariableServer "un_database_save"; hint "saveing game"; }; // ------------------------------------------------------------addaction to player to save data-------------------------------------------------------------------- player addAction ["<t color='#38BAFF'>Save Game</t>", {[] call UN_savedata;}]; // MrJizz - Factionfinderdotcom
  2. I've been hitting my head against a wall for a few days trying to sort this issue. I have a script (see below) that I wrote for a firing range. It works perfectly in SP and on locally hosted servers. I am having issues with it on the dedicated server. I dug through the (recent) topic below and have attempted tweaks off of that to no avail. https://forums.bohemia.net/forums/topic/221167-addmpeventhandler-not-working-on-dedicated-server/?_fromLogin=1 I feel like my issue is lying somewhere in the eventHandler not updating the score variables for some reason. I am not sure why it would be working on a local host and not dedicated. Below is the first snippet of the script down to where I added the first check to see if the EHs were working. Any help offered would be greatly appreciated. My head hurts and I'm afraid I'll dent my wall if I keep hitting it. PS. I am using the targetHumanSimple because it does not fall when it gets shot. I did this so the shooter has to observe the bullet strike and does not have a visual aide. I don't think this would make any difference but full disclosure is full disclosure.
×