Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - OkieDokie

#1
#03a9f4]* An error occured [#ffffff]the index 'Language' does not exist [#03a9f4]at origin [#ffffff]/home/vlmp/scripts/Miscs/Message.nut [#03a9f4]line no [#ffffff]103 [#03a9f4]function [#ffffff]unknown

Error keeps appearing, forcing players who connected before this happened to  keep playing
And if someone new tries to join they cannot get in.

Any suggestions ? quick fixes ?
#2
its only the line at 103 though :/
#3
ok so, does this mean im gonna have to change everyline like that, cause only error is in line 103 ?

but theres multiple lines written with that index
#4
Any possible chance Umar you can contact me on discord ? i could screenshare
#5
this is driving me nuts ! ???
#6
than more errors appear in the scripts/events/player folders for those .nut script files. -.- ugh so is it possible to just fix this error and not have anymore pop up, the script loads, everything seems to be working, just crashes on player join, and we can talk in server, basically with no scripts and shit loaded at all.
#7
i've tried even removing language from the lines, ive tried like all kinds of shit, the scripts still load, but crash when someone connects.
#8
do you mean the .nut file of playerjoin or you talking about the errorcode in the server console when a player connects and crashes scripts

That would be this one



at origin: /home/vlmp/scripts/Miscs/Message.nut: 103, function: unknown
[ERR] [Locals]  [type]: [#03a9f4]
        [element]: (array : 0x0x2584b30)
        [vargv]: (array : 0x0x95a3990)
        [player]: 0
        [st]: (array : 0x0x95a3f80)

[ERR] An error occured [ the index 'language' does not exist ]
at origin: /home/vlmp/scripts/Miscs/Message.nut: 103, function: unknown
[ERR] [Locals]  [type]: [#03a9f4]
        [element]: (array : 0x0x2584b30)
        [vargv]: (array : 0x0x95a4120)
        [player]: 0
        [st]: (array : 0x0x95a47c0)

[ERR] An error occured [ the index 'language' does not exist ]
at origin: /home/vlmp/scripts/Miscs/Message.nut: 103, function: unknown
[ERR] [Locals]  [type]: [#03a9f4]
        [element]: (array : 0x0x2584b30)
        [vargv]: (array : 0x0x95a4830)
        [player]: 0
        [st]: (array : 0x0x95a4090)


#9
ok so umar, in the entire script of Message.nut i many lines with player.data.language,

but the only error displaying is for line 103, so do i just remove all lines in the .nut file and change to player.data.variable ?

 you mean
#10
lines 98 to 111

   function MsgAdmin( type, element, ... )
   {      
      SqForeach.Player.Active( this, function( player )
      {
         local st = [];   
         st.push( element[ player.Data.Language ] );
         foreach( a in vargv )
         {
            if( a != null ) st.push( a );
         }
         
         if( player.Data.Player.Permission.Staff.Position.tointeger() > 0 && player.Data.Logged ) player.Msg1( type, st );
      });
   }
#11
   this is the exact line of 103
If you could provide me a solution that would be greatly appreciated thanks.

         st.push( element[ player.Data.Language ] );
#12
Anyone have a solution for line 103 in my .nut file what i can do ?
its crashing the server scripts on player join
i've tried all different kinds of solutions nothing working yet,

i did goto alink someone sent me, but thats for something different,
there is no code in written for variables ? so im not sure

I need some help thanks !



at origin: /home/vlmp/scripts/Miscs/Message.nut: 103, function: unknown
[ERR] [Locals]  [type]: [#03a9f4]
        [element]: (array : 0x0x280d8b0)
        [vargv]: (array : 0x0x982a9a0)
        [player]: 0
        [st]: (array : 0x0x982ae80)

[ERR] An error occured [ the index 'Language' does not exist ]
at origin: /home/vlmp/scripts/Miscs/Message.nut: 103, function: unknown
[ERR] [Locals]  [type]: [#03a9f4]
        [element]: (array : 0x0x280d8b0)
        [vargv]: (array : 0x0x98372d0)
        [player]: 0
        [st]: (array : 0x0x982add0)

[ERR] An error occured [ the index 'Language' does not exist ]
at origin: /home/vlmp/scripts/Miscs/Message.nut: 103, function: unknown
[ERR] [Locals]  [type]: [#03a9f4]
        [element]: (array : 0x0x280d8b0)
        [vargv]: (array : 0x0x982bd30)
        [player]: 0
        [st]: (array : 0x0x982b9b0)



#13
Abit more detailed help would be alittle appreciated, i understand the error, i just need to refresh my memory its been awhile, and im not exactly sure where to add these codes in the script ?
#14
Yes well, where do i exactly place these variable codes in that link you sent me, i've checked the .nut script and i dont see any code written for variables, so im not sure where to place, do you have discord ? maybe i could screen share ? more help would be appreciated thanks ! :)
#15
i have ran into a problem, only error, and it is crashing the script on player join ?

[ERR] An error occured [ the index 'Language' does not exist ][/][/err]
[ERR][ the index 'Language' does not exist ]
at origin: /home/vlmp/scripts/Miscs/Message.nut: 103, function: unknown
[ERR] [Locals]  [type]: [#03a9f4]
        [element]: (array : 0x0x189f930)
        [vargv]: (array : 0x0x884d890)
        [player]: 1
        [st]: (array : 0x0x884df60)     Any suggestions ? this has been driving me crazy, i used to script in squirrel alot, but was away for a year, i recently came back, and this sqmod is new to me, but yeah. so i am helping for free, and am the new developer. so if anyone that could help me on this one single error left please and thank you..