igoooor
-
Posts
29 -
Joined
-
Last visited
Reputation Activity
-
igoooor got a reaction from TNT in [Alpha Release] Single Currency 3.0 & Storage DEFAULT HIVE ( No global banking).
Thank you very much ! I changed this:
s_givemoney_dialog = player addAction [format["Give Money to %1", (name _cursorTarget)], "ZSC\actions\give_player_dialog.sqf",_cursorTarget, 3, true, true, "", ""]; into this: _targetName = if ((_cursorTarget getVariable["DZE_display_name",false]) || (DZE_ForceNameTagsInTrader && isInTraderCity)) then { name _cursorTarget; } else { "Player"; }; s_givemoney_dialog = player addAction [format["Give Money to %1", _targetName], "ZSC\actions\give_player_dialog.sqf",_cursorTarget, 3, true, true, "", ""]; And it works like a charm :)
-
igoooor got a reaction from hambeast in [TUTORIAL] How to use Public Variables
sure :)
thanks again for this awesome tutorial!
-
igoooor got a reaction from hambeast in [TUTORIAL] How to use Public Variables
you did the same error "_packet = _this select 0;" in lesson 3
And also in lesson 3, I think this is not correct:
PV_EventStatusClient = [Dayz_Epoch_Event_Running]; publicVariable "Dayz_Epoch_Event_Running"; and should be:
PV_EventStatusClient = [Dayz_Epoch_Event_Running]; publicVariable "PV_EventStatusClient"; right ? You did it twice this one ;)
Edit:
I just saw:
private ["packet","_sender","_status","_logString","_isAdmin",]; _packet = _this select 0; see "packet" and "_packet" ? ^^
-
igoooor got a reaction from hambeast in [TUTORIAL] How to use Public Variables
Thank you sir, I learned a lot today, I now know how to cutText to the cursorTarget ^^!
However I think there is some mistakes in your code, lesson2:
// server side check, make sure only the server runs this code if (isDedicated) then { // DEBUG: Manually set our event to running... You would normally do this thru a menu etc. // note, that this variable is only set on the server itself, so the client has no idea of the value // if you wanted, you could pass this thru instead of a skin but that's out of the scope of this tutorial Server_Event = true; // expects: [player] // Handles our client JIP requests "PV_JIP_Event_Check" addPublicVariableEventHandler { private ["_packet","_player","_owner","_skinClassName"]; // deserialize our packet _packet = _this select 0; // shouldn't be select 1 according to lesson1? <=================== HERE _player = _packet select 0; _owener = owner player; // wrong var name <=================== AND HERE _skinClassName = "FR_GL"; // my personal skin // check to see if Server_Event has been set by an admin/script. if (!isNil "Server_Event") then { // validate Server_Event is true, if true, our even is running if (Server_Event) then { // our event is running, change skin of JIP player PV_ChangePlayerSkin = ["FR_GL"]; _owner publicVariableClient "PV_ChangePlayerSkin"; }; }; }; }; I know this is not big mistakes, but if someone copy/paste to give it a try, he might encounter some issues ^^