Jump to content

Question

4 answers to this question

Recommended Posts

Posted

As the debug messages say: the compare function expects a string, but you gave it a number. To convert a number to string, just use this:

.@yourNumberVar + ""

 

By adding an empty string to it (""), it will be intrepreted as a string.

Posted

As the debug messages say: the compare function expects a string, but you gave it a number. To convert a number to string, just use this:

.@yourNumberVar + ""

 

By adding an empty string to it (""), it will be intrepreted as a string.

Sry I'm noob could you tell me where will I put .@yourNumberVar + "" ?

Posted

You have to add it to every getarg in every compare.

 

For example the lines 13 and 14:

 


// line 13
for(set .e,0; !compare(getarg(.e+1),"Zeny"); set .e,.e+2) {}

=>

for(set .e,0; !compare(getarg(.e+1) + "","Zeny"); set .e,.e+2) {}



// line 14
npcshopadditem "EV_VSET",getarg(.e+2),getarg(.e)*compare(getarg(.e+1),"SZeny");

=>

npcshopadditem "EV_VSET",getarg(.e+2),getarg(.e)*compare(getarg(.e+1) + "","SZeny");


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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...