{"action":"created","issue":{"url":"https://api.github.com/repos/A3Wasteland/ArmA3_Wasteland.Stratis/issues/57","labels_url":"https://api.github.com/repos/A3Wasteland/ArmA3_Wasteland.Stratis/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/A3Wasteland/ArmA3_Wasteland.Stratis/issues/57/comments","events_url":"https://api.github.com/repos/A3Wasteland/ArmA3_Wasteland.Stratis/issues/57/events","html_url":"https://github.com/A3Wasteland/ArmA3_Wasteland.Stratis/issues/57","id":54045214,"number":57,"title":"Teamswitch Side variable.","user":{"login":"stankpunatra","id":3068703,"avatar_url":"https://avatars.githubusercontent.com/u/3068703?v=3","gravatar_id":"","url":"https://api.github.com/users/stankpunatra","html_url":"https://github.com/stankpunatra","followers_url":"https://api.github.com/users/stankpunatra/followers","following_url":"https://api.github.com/users/stankpunatra/following{/other_user}","gists_url":"https://api.github.com/users/stankpunatra/gists{/gist_id}","starred_url":"https://api.github.com/users/stankpunatra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stankpunatra/subscriptions","organizations_url":"https://api.github.com/users/stankpunatra/orgs","repos_url":"https://api.github.com/users/stankpunatra/repos","events_url":"https://api.github.com/users/stankpunatra/events{/privacy}","received_events_url":"https://api.github.com/users/stankpunatra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-12T11:51:15Z","updated_at":"2015-01-13T08:11:56Z","closed_at":null,"body":"When locked to a team, attempting to switch to a restricted team, the dialog variable for telling the player which side they were playing as is not displaying.\r\n\r\nThe message in-game appears as \"You have played as %1 for too long....\"  instead of replacing %1 with variables for 'blufor' or 'opfor'\r\nHave been scratching my head trying to fix this minor issue. Any help is appreciated.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/A3Wasteland/ArmA3_Wasteland.Stratis/issues/comments/69709098","html_url":"https://github.com/A3Wasteland/ArmA3_Wasteland.Stratis/issues/57#issuecomment-69709098","issue_url":"https://api.github.com/repos/A3Wasteland/ArmA3_Wasteland.Stratis/issues/57","id":69709098,"user":{"login":"stankpunatra","id":3068703,"avatar_url":"https://avatars.githubusercontent.com/u/3068703?v=3","gravatar_id":"","url":"https://api.github.com/users/stankpunatra","html_url":"https://github.com/stankpunatra","followers_url":"https://api.github.com/users/stankpunatra/followers","following_url":"https://api.github.com/users/stankpunatra/following{/other_user}","gists_url":"https://api.github.com/users/stankpunatra/gists{/gist_id}","starred_url":"https://api.github.com/users/stankpunatra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stankpunatra/subscriptions","organizations_url":"https://api.github.com/users/stankpunatra/orgs","repos_url":"https://api.github.com/users/stankpunatra/repos","events_url":"https://api.github.com/users/stankpunatra/events{/privacy}","received_events_url":"https://api.github.com/users/stankpunatra/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T08:11:56Z","updated_at":"2015-01-13T08:11:56Z","body":"To anyone else having the same issue, I managed a slight work-around. Not sure it's the best way, or even proper way to achieve it, but it does work.\r\n\r\nin client\\functions\\playerSpawn.sqf\r\n\r\noriginal starting at line 41:\r\nuiNamespace setVariable [\"BIS_fnc_guiMessage_status\", false];\r\n_msgBox = [localize \"STR_WL_Loading_Teamswitched\"] spawn BIS_fnc_guiMessage;\r\n\r\nChanged to:\r\nuiNamespace setVariable [\"BIS_fnc_guiMessage_status\", false];\r\n _prevSide = switch (playerSide) do\r\n{\r\n//case \"SIDE\", in this instance,is the side you are switching to.\r\ncase BLUFOR: { \"OPFOR\" }; //if switching to BLUFOR, say you've played on Opfor too long\r\ncase OPFOR:  { \"BLUFOR\" }; //if switching to OPFOR say you've played on BluFor too long.\r\n};\r\n_msgBox = format [localize \"STR_WL_Loading_Teamswitched\", _prevSide] spawn BIS_fnc_guiMessage;\r\n\r\nIf this can be considered a 'proper' fix, then go ahead review and close out, otherwise, still open to suggestions on any better method to do this."}}