soldierXXXX 121 Posted January 22 28 minutes ago, Coy74 said: I won't need to because I can join group for these AI. As it was before. correct? Yes, no major change was done on this part. 29 minutes ago, Coy74 said: line 105 - Invalid number error in expression I cannot reproduce this on my own. When the error happens ? Do you have any steps to reproduce ? Sometimes message from rpt file helps us to understand what's happening. To test that I've tried to spawn new unit with group player createUnit ["B_soldier_UGV_02_Science_F",position player,[], 0, "NONE"]; and no error appeared, action was shown as expected. Try to test the script running alone without other scripts. Also try to check for invisible characters in proper text editor like notepad++. Sometimes when you copy from here some invisible characters are added. You can also test that if you try to put the code here into code block. Red circle indicates where it is. Share this post Link to post Share on other sites
Coy74 2 Posted January 23 Hello I will clean all the scripts or do a new mission and use one script at a time to see if an error appears and where there is a code conflict. I'll only do it for the weekend, I'll return on Monday. I thank you very much for your attention and great help. By any chance you have an address on how to learn these codes in a basic step by step, because I have access, but it's practically a copy and paste. If you have any links, thank you, because I don't know where to start. Share this post Link to post Share on other sites
Coy74 2 Posted January 23 20 hours ago, soldierXXXX said: I cannot reproduce this on my own. When the error happens ? Do you have any steps to reproduce ? Sometimes message from rpt file helps us to understand what's happening. To test that I've tried to spawn new unit with It generated the problem when I entered the map (briefing) and then everything was erased (join group, leaving group, dismiss). Share this post Link to post Share on other sites
soldierXXXX 121 Posted January 23 Quick tested the code again, this time with initPlayerLocal.sqf and pasted my code from this page inside, launched multiplayer mode from eden and still got no error on my end. So I guess the cause will be really some invisible character that got into your code when you copied it. Try to delete the code and paste it again. Of course I encurage you to check the code for invisible characters as well. As I said, sometimes it happens unintentionally and error message appear with the same "Unexpected number in expression" error. For your other question, I usually recommend youtube channel Feuerex which helped me the most when I learned scripting. The guy provides deep explanation on how scripts and systems in arma 3 works. Of course the source of all knowledge Introduction to Arma Scripting which will teach you the basics. And then, this forum, where you can look at other people's codes and learn from them. There are usually more ways to do stuff and script from person 1 will be different from person 2, so don't learn it like a poem, but rather try to understand what is happening in the script. Scripting is not easy, especially for beginners and it takes time to understand it...a lot of time, so don't give up when things don't work first time. I recommend to start with simple things, like showing a hint ingame when something happens and then slowly do more and more challenging scripts when you feel like you're ready. 1 Share this post Link to post Share on other sites
Coy74 2 Posted January 26 On 1/23/2025 at 11:44 AM, soldierXXXX said: Testei rapidamente o código novamente, desta vez com initPlayerLocal.sqf e colei meu código desta página dentro, iniciei o modo multiplayer do éden e ainda não recebi nenhum erro do meu lado. Então, acho que a causa será realmente algum caractere invisível que entrou em seu código quando você o copiou. Tente excluir o código e cole-o novamente. Claro que eu recomendo que você verifique o código em busca de caracteres invisíveis também. Como eu disse, às vezes isso acontece involuntariamente e a mensagem de erro aparece com o mesmo erro "Número inesperado na expressão". I'm back... Hallelujah! I come here to thank you because I was able to run both scripts. The error did not appear. 1- I created a new Warlords quest. 2- I entered the scripts 1 at a time and opened the game, it worked 100%. 3- I inserted all the scripts (17 scripts) that were in the previous mission one at a time. It worked in every opening. 4- I opened the game and it didn't give the error anymore. Now I can re-use my subordinates in a restricted way to relocate. I also have the option to recruit subordinates from other allied players. 🙂 It was wonderful Thank you again for your time. On 1/23/2025 at 11:44 AM, soldierXXXX said: For your other question, I usually recommend youtube channel Feuerex which helped me the most when I learned scripting. The guy provides deep explanation on how scripts and systems in arma 3 works. Of course the source of all knowledge Introduction to Arma Scripting which will teach you the basics. And then, this forum, where you can look at other people's codes and learn from them. There are usually more ways to do stuff and script from person 1 will be different from person 2, so don't learn it like a poem, but rather try to understand what is happening in the script. Scripting is not easy, especially for beginners and it takes time to understand it...a lot of time, so don't give up when things don't work first time. I recommend to start with simple things, like showing a hint ingame when something happens and then slowly do more and more challenging scripts when you feel like you're ready. soldierXXXX rest assured that I will do my best to learn the basics. Thanks for sharing. 1 Share this post Link to post Share on other sites