Page 1 of 5

failed to parse non-numeric... /crashing head

Posted: Mon Feb 14, 2005 6:10 am
by mauroxx

Code: Select all

Sub Event_reqa(text,player,Fulltext)
 /echo ${player} asking for ${fulltext}
 /if (${Fulltext.Equal[ch])==1) /varset Fulltext "Complete Healing"
 /target ${player}
 /call cast "${Fulltext}" gem8 2s   
/return
error is on

Code: Select all

/if (${Fulltext.Equal[ch])==1)
non-numeric ... i tryed also without ==1 ... but cant solve this, i get always stuck on if conditions... i m still newbie...

help me plz!

Mauroxx

Posted: Mon Feb 14, 2005 6:38 am
by Devious_D
instead of

Code: Select all

/if (${Fulltext.Equal[ch][color=cyan])==1)[/color]
try

Code: Select all

/if (${Fulltext.Equal[ch]})
Your main problem was not having } instead you just had )

Posted: Mon Feb 14, 2005 9:52 am
by Arune
Correct me if I am wrong, but wouldnt using that make the mac execute the CH string with words like each, peach, tech, chair, school, etc?

Posted: Tue Feb 15, 2005 2:25 am
by wassup
Arune wrote:Correct me if I am wrong, but wouldnt using that make the mac execute the CH string with words like each, peach, tech, chair, school, etc?
That would be

Code: Select all

/if (${Fulltext.Find[ch]})

Posted: Tue Feb 15, 2005 4:01 am
by blueninja
I don't really know how mq2 handles this but in other languages you wouldn't be able to change a variable that's been passed as an argument to your function..

Re: failed to parse non-numeric... /crashing head

Posted: Thu Apr 10, 2025 8:27 pm
by xyilla

Re: failed to parse non-numeric... /crashing head

Posted: Thu Apr 10, 2025 8:28 pm
by xyilla

Re: failed to parse non-numeric... /crashing head

Posted: Thu Apr 10, 2025 8:29 pm
by xyilla

Re: failed to parse non-numeric... /crashing head

Posted: Thu Apr 10, 2025 8:30 pm
by xyilla

Re: failed to parse non-numeric... /crashing head

Posted: Thu Apr 10, 2025 8:32 pm
by xyilla

Re: failed to parse non-numeric... /crashing head

Posted: Thu Apr 10, 2025 8:33 pm
by xyilla

Re: failed to parse non-numeric... /crashing head

Posted: Thu Apr 10, 2025 8:34 pm
by xyilla

Re: failed to parse non-numeric... /crashing head

Posted: Thu Apr 10, 2025 8:35 pm
by xyilla

Re: failed to parse non-numeric... /crashing head

Posted: Thu Apr 10, 2025 8:36 pm
by xyilla

Re: failed to parse non-numeric... /crashing head

Posted: Thu Apr 10, 2025 8:37 pm
by xyilla