OkieDokie

  • Newbie
  • I Like Weed
  • Posts: 17
Script error line 103 any suggestions ?
«  »
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

Athanatos

  • Hero Member
  • Romania Cops N Robbers Lead Developer
  • Posts: 796

OkieDokie

  • Newbie
  • I Like Weed
  • Posts: 17
Re: Script error line 103 any suggestions ?
« Reply #2,  »Last edited
   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 ] );
Re: Script error line 103 any suggestions ?
« Reply #3,  »
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

  • Jr. Member
  • Posts: 84
Re: Script error line 103 any suggestions ?
« Reply #4,  »
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?