raptor2x
Member-
Content Count
48 -
Joined
-
Last visited
-
Medals
Community Reputation
10 GoodAbout raptor2x
-
Rank
Lance Corporal
Profile Information
-
Gender
Not Telling
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
raptor2x started following Let's talk about server FPS and the affect on clients., Sukhoi Su-34, Vehicle fired Event Handler and and 5 others
-
Hello, So basically I'm trying to do something when a player fires with a mortar. This is a simple code I made to check if it's working when the player fires with a MK18, and it's working good: player addEventHandler ["Fired",{ if (_this select 1 == "srifle_EBR_F") then { do something here };}];So now I'm trying to adapt the code for the mortar, this is what I tried :player addEventHandler ["Fired",{ if (_this select 1 == "mortar_82mm") then { do something here };}];It's not working and I probably know why "This EH will not trigger if a unit fires out of a vehicle. For those cases an EH has to be attached to that particular vehicle.", the mortar is a vehicle. So from what I understand I need to attach the Event Handler to the vehicle and not to the player itself. Can you explain me how can I do that ? Thank you !
-
SQL : character ":" causes error
raptor2x replied to raptor2x's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yep, the problem is that I'm a beginner so I don't know how to do that exactly. That's not a big big problem so I think that I will just try to warn the player if he writes ":". -
SQL : character ":" causes error
raptor2x replied to raptor2x's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Like that ? private ["_answerAuthorID", "_answerAuthorName", "_answerText"]; _answerAuthorID = _this select 0; _answerAuthorName = _this select 1; _answerText = _this select 2; _textArray = []; _textArray pushBack _answerText; [format ["addOpinion:%1:%2:%3", _answerAuthorID, _answerAuthorName, _textArray]] call extDB_Database_async; It gives But the problem is the same with ":" [17:56:57:934 +02:00] [Thread 5564] extDB2: SQL_CUSTOM_V2: Incorrect Number of Inputs: Input String addOpinion:76561198028528740:Raptor:[":"] [17:56:57:934 +02:00] [Thread 5564] extDB2: SQL_CUSTOM_V2: Incorrect Number of Inputs: Expected: 3 Got: 4 [17:57:37:105 +02:00] [Thread 5564] extDB2: SQL_CUSTOM_V2: Incorrect Number of Inputs: Input String addOpinion:76561198028528740:Raptor:["qsdqsdqds qs :"] [17:57:37:105 +02:00] [Thread 5564] extDB2: SQL_CUSTOM_V2: Incorrect Number of Inputs: Expected: 3 Got: 4 What am I supposed to do with onChar ? Thanks guys ! -
SQL : character ":" causes error
raptor2x replied to raptor2x's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks for your help guys. So there is no way to have this character in a normal text in the database ? We must prevent the player from writing it ? Btw, is ":" the only character that can't be used ? -
Hello, So basically I have a dialog where the player can enter a text. Then I save this text in my database. It's working good but if the player puts the character ":" inside his text, the query will understand as if it was a new input (I don't know if I'm expressing myself correctly, sorry). Here is the log so you will understand what I'm saying : [14:44:50:842 +02:00] [Thread 4856] extDB2: SQL_CUSTOM_V2: Incorrect Number of Inputs: Input String addOpinion:76561198028528740:Raptor:this is a wonderful test :) [14:44:50:842 +02:00] [Thread 4856] extDB2: SQL_CUSTOM_V2: Incorrect Number of Inputs: Expected: 3 Got: 4 [14:32:36:478 +02:00] [Thread 4856] extDB2: SQL_CUSTOM_V2: Incorrect Number of Inputs: Input String addOpinion:76561198028528740:Raptor:: [14:32:36:478 +02:00] [Thread 4856] extDB2: SQL_CUSTOM_V2: Incorrect Number of Inputs: Expected: 3 Got: 4 [14:50:00:276 +02:00] [Thread 3028] extDB2: SQL_CUSTOM_V2: Incorrect Number of Inputs: Input String addOpinion:76561198028528740:Raptor:test 2 : : : : : : : [14:50:00:276 +02:00] [Thread 3028] extDB2: SQL_CUSTOM_V2: Incorrect Number of Inputs: Expected: 3 Got: 10 So what should I do to force the character not be considerated as a new input ? private ["_answerAuthorID", "_answerAuthorName", "_answerText"]; _answerAuthorID = _this select 0; _answerAuthorName = _this select 1; _answerText = _this select 2; [format ["addOpinion:%1:%2:%3", _answerAuthorID, _answerAuthorName, _answerText]] call extDB_Database_async; Thank you !
-
[SOLVED] GUI : How to remove the area border of RcsText
raptor2x replied to raptor2x's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yep, it's also working ! Thank you ! :-) -
[SOLVED] GUI : How to remove the area border of RcsText
raptor2x replied to raptor2x's topic in ARMA 3 - MISSION EDITING & SCRIPTING
You really know everything about GUI on Arma 3 ! :D Thank you very much for your help. -
[SOLVED] GUI : How to remove the area border of RcsText
raptor2x posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I'm using style = "16" because I want to show text on multiple lines, it's working good but there is a little problem : This grey area border that dissapears when you click on an other UI element but then reappers if you click back on the text. Any idea if we can remove this ? Thanks ! -
[SOLVED] A small problem with SQL
raptor2x replied to raptor2x's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you so much for your help hoverguy ! Now it works perfectly. :) -
Hello, Ok so my problem is easy to understand and I think that it is also easy to resolve. To explain that quickly, here is my code : _userUID = getPlayerUID player; _alreadyAnswered = [format ["getAnswerAuthor:%1", _userUID], 2] call extDB_Database_async; systemChat format ["%1", _alreadyAnswered]; if(_alreadyAnswered == what can I write here ?) then { blablabla } else { blablabla }; And here is the SQL code referring to "getAnswerAuthor" : [getAnswerAuthor] SQL1_1 = SELECT COUNT(*) FROM sondages WHERE UID = ?; Prepared Statement Cache = false Number of Inputs = 1 SQL1_INPUTS = 1 So the SQL query just checks if there is the UID of the player in the "sondages" table, then it returns 1 or 0 in alreadyAnswered. It's actually working well, when I check what's the result with systemChat format ["%1", _alreadyAnswered]; , it says in the chat [0] or [1]. But the problem is that I want to do something with this [1] or that [0], as you can see at the line 5. I don't know how I can do that because it's not a simple true/false or a 1/0, there are the "[]" next to the number. So basically how can I do that if(_alreadyAnswered == [1]) ? Thanks !
-
[GUI] Remove an element from a dialog
raptor2x replied to raptor2x's topic in ARMA 3 - MISSION EDITING & SCRIPTING
This is exactly what I was looking for, ctrlShow is doing the job. Thank you very much killzone_kid ! -
[GUI] Remove an element from a dialog
raptor2x posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I will try to explain that quickly : I made a dialog with some buttons, text and images. I would like to know if it is possible to remove one element from the dialog when I click on one of the button. So let's imagine a window with 2 images in it and 2 buttons in it : one button to remove the image 1, one other to remove the image 2. Everything is in the same window . How can I do that ? I know about the function closeDialog idc, but it's not what I want because it closes everything. I tried the function with the idc of the element I want to remove, but it closes everything so I guess that I'm using this function wrong. I hope that you understand what I'm trying to do. Thank you ! :-) -
Nice work sabre ! Glad to see that you already started to work on what we were talking about yesterday. :) Can we still close the ramp ?
-
Now with this update the mod is working perfectly with the laser-guided bombs, this is a masterpiece, one more time thank you very much for your work sabre ! If some of you are using the mod ACE, you will have to disable it (at least I had to) in order to use the guided bombs because ACE replace them with unguided ones, this is strange but @sabre will probably do something to prevent that. :)
-
United States Air Force( 2015)
raptor2x replied to SGT Fuller's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Thank you very much for your amazing work ! This mod pack is just wonderful.