Hope You Give Me True Solution

Started by [RRZ]_Genius, May 15, 2016, 08:32 AM

Previous topic - Next topic

KAKAN

Quote from: [RRZ]_Genius on May 16, 2016, 02:40 PMHEY WHICH APP I USE TO OPEN lms.nut.cnut bcz it need any file to open
You can use wordpad, though you won't understand anything because it's a compiled file( usually it is )
And editing it is complete shit :P
oh no

Cool

Please Lock this topic that guy not giving us any info only spamming

MatheuS

Its function to check errors, is in error in Cmds.nut file.

Ex.:
function Brazillian( player )
{
      try{
             Message("blablabla")`; //with error in )`;
  }
  catch(e) print( "Function 'Brazillian' Error: " + e ); //here show the error, in your case this function is in error
}
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

.

#18
@MatheuS That's a syntax error. It will be caught at compile time and not not runtime.

This is a runtime error:
try
{
    "lalala".tointeger();
}
catch (e)
{
    print("'lalala' is not a number you fool");
}
.

[RRZ]_Genius

by replacing dofile (cmds.nut) with //dofile("Cmds.nut"); I got my problem solved

SPECIAL THANKS TO Motley
problem solved

Rise To Distinction - Join Revolver Rivalz

MatheuS

Quote from: [RRZ]_Genius on May 17, 2016, 05:13 PMby replacing dofile (cmds.nut) with //dofile("Cmds.nut"); I got my problem solved

SPECIAL THANKS TO Motley
problem solved

you know that doing this will are leaving your cmds.nut file without any function to the script, right?
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

Mötley

Yeah the Intention @[RRZ]_Genius is to do this, then copy everything inside of cmd.nut and paste that at the very bottom of LMS.nut

When you do this you should add at the bottom of the script
//--------------------------------------------------------------------------------*Since you are new to scripting I guess
Doing so you will get correct errors. as the error is in cmd.nut can not be detected as the dofile can not detect the error, so this is the easiest/simplest  way to detect an odd error.

It's Rare but sometimes I do this when I do a crap load of scripting then I get this error myself,
Which in my case is always a mistype, Meh..

Cool

he is full new to scripting he didnt know anything i think he need to get start with ADM its good

KAKAN

Quote from: Hercules on May 17, 2016, 06:22 PMhe is full new to scripting he didnt know anything i think he need to get start with ADM its good
ADM is a shitty buggy script.
oh no