Jump to content
  • 0

how to fix unexpected type for argumen 1. expected number


Winter1992

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  11/08/15
  • Last Seen:  

here is the error see the image also here's the loop code 

 

        for( set .@i,1; .@i <= 6; set .@i,.@i+1 )
        {
            if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields
                set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
                set .@arr[.@j], .@i;
                set .@j, .@j + 1;
                set .@menu$, .@menu$ + ":";
            }
            if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) {
                set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
                set .@arr[.@j], .@i;
                set .@j, .@j + 1;
                set .@menu$, .@menu$ + ":";
            }

            
        }

Untitled.jpg

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Try to post the whole script and someone might help you out and test the script. because if you just post something like that? for someone like me that want to help but i cant because my knowledge is very limited on scripting. so please attach the script that you are using.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Try to add this

  for( set .@i,1; .@i <= 6; set .@i,.@i+1 )
        {
+            if( !getequipisequiped(.@i) ) continue;
            if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields
                set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
                set .@arr[.@j], .@i;
                set .@j, .@j + 1;
                set .@menu$, .@menu$ + ":";
            }
            if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) {
                set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
                set .@arr[.@j], .@i;
                set .@j, .@j + 1;
                set .@menu$, .@menu$ + ":";
            }

            
        }

 

The warning appears because getiteminfo is triggered even when there's nothing equipped.

 

7 hours ago, Winter1992 said:

no one answer as usual lol !! nice rathena keep it up 

If you wanted your question to be answered ASAP. You can hire your own developer :P:P

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  11/08/15
  • Last Seen:  

On 4/1/2017 at 5:37 PM, Radian said:

Try to post the whole script and someone might help you out and test the script. because if you just post something like that? for someone like me that want to help but i cant because my knowledge is very limited on scripting. so please attach the script that you are using.

ok ok bro thanks

 

 

On 4/1/2017 at 7:20 PM, Technoken said:

Try to add this


  for( set .@i,1; .@i <= 6; set .@i,.@i+1 )
        {
+            if( !getequipisequiped(.@i) ) continue;
            if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields
                set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
                set .@arr[.@j], .@i;
                set .@j, .@j + 1;
                set .@menu$, .@menu$ + ":";
            }
            if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) {
                set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
                set .@arr[.@j], .@i;
                set .@j, .@j + 1;
                set .@menu$, .@menu$ + ":";
            }

            
        }

 

The warning appears because getiteminfo is triggered even when there's nothing equipped.

 

If you wanted your question to be answered ASAP. You can hire your own developer :P:P

ty for this i will try it 

 

On 4/1/2017 at 7:20 PM, Technoken said:

Try to add this


  for( set .@i,1; .@i <= 6; set .@i,.@i+1 )
        {
+            if( !getequipisequiped(.@i) ) continue;
            if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields
                set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
                set .@arr[.@j], .@i;
                set .@j, .@j + 1;
                set .@menu$, .@menu$ + ":";
            }
            if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) {
                set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
                set .@arr[.@j], .@i;
                set .@j, .@j + 1;
                set .@menu$, .@menu$ + ":";
            }

            
        }

 

The warning appears because getiteminfo is triggered even when there's nothing equipped.

 

If you wanted your question to be answered ASAP. You can hire your own developer :P:P

 

On 4/1/2017 at 7:20 PM, Technoken said:

Try to add this


  for( set .@i,1; .@i <= 6; set .@i,.@i+1 )
        {
+            if( !getequipisequiped(.@i) ) continue;
            if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields
                set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
                set .@arr[.@j], .@i;
                set .@j, .@j + 1;
                set .@menu$, .@menu$ + ":";
            }
            if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) {
                set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
                set .@arr[.@j], .@i;
                set .@j, .@j + 1;
                set .@menu$, .@menu$ + ":";
            }

            
        }

 

The warning appears because getiteminfo is triggered even when there's nothing equipped.

 

If you wanted your question to be answered ASAP. You can hire your own developer :P:P

thankyou for this my apology for my quote ehe thankyou 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...