Jump to content
  • 0

My custom Menu but SQF is not launching? or bad coded


se7en

Question

Hi there!

First of all im very beginner in all these stuff and could do something wrong so please help me ;)

 

Got a menu that which i press i see some options to choose from.

Not gonna paste all the code just some:

pathtomyscripts = "custom\scripts\";
EXECscript = 'player execVM "'+pathtomyscripts+'%1"';

and got the Menu option like that:

["Move!!", [1], "", -5, [["expression", format[_EXECscript, "move.sqf"]]], "1", "1"],

So...

In the mission file/custom/scripts/move.sqf i got that:

_action = _this select 0;
player playMoveNow _action;
 
cutText["Press V to cancel movement","PLAIN DOWN"];

Not sure if doing something wrong but thats not working...

 

Any help appreciated what could i do wrong in there.

I believe my menus are fine... So got no idea why this doesnt work ;(

 

 

EDIT:::

I'm an idiot! _EXECscript => EXECscript

But it doesnt changes that this script isnt working...

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

if you have the file In the mission file/custom/scripts/move.sqf

 

should the file path be the same like this ?

 

["Move!!", [1], "", -5, [["expression", format[_EXECscript, "custom\scripts\move.sqf"]]], "1", "1"],

 

It is same path mate...

 

pathtomyscripts = "custom\scripts\";
EXECscript = 'player execVM "'+pathtomyscripts+'%1"';

and got the Menu option like that:

["Move!!", [1], "", -5, [["expression", format[_EXECscript, "move.sqf"]]], "1", "1"],

 

Means, player execVM custom\scripts\move.sqf

But actually paths are fine for sure, thats i know, because got other script that works already.

I believe there is an error with move.sqf file

Link to comment
Share on other sites

  • 0

I believe its not about launching script because it already launches.

Got same line above for other menu option with other .sqf script and it WORKS.

this means the error is in the sqf script of that one.

 

You do think that this is good script?:

 

_action = _this select 0;
player playMoveNow _action;
 
cutText["Press V to cancel movement","PLAIN DOWN"];
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...