Script error line 103 any suggestions ?

Started by OkieDokie, May 15, 2019, 04:15 PM

Previous topic - Next topic

OkieDokie

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)



Viceland Dev

NicusorN5

How would you  expect to fix your error since you dont provide the source code?

OkieDokie

#2
   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 ] );
Viceland Dev

OkieDokie

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 );
      });
   }
Viceland Dev

dracc

All the info is right there. There's no index named "Language" in "player.Data". Why did you create more threads for the same exact issue?