Feilor Posted January 16, 2018 Posted January 16, 2018 could someone help me with getd? i have this: explode(.@opcoes$,getd(".@"+"enchantgroup"+(atoi(getarg(1))+1)+"$")[(rand(1,getarraysize(getd(".@"+"enchantgroup"+(atoi(getarg(1))+1)+"$")))-1)],","); and i'm getting this error: Quote [Error]: Loading NPC file: npc/inq.txt script error on npc/inq.txt line 137 parse_callfunc: not enough arguments, expected ',' Quote
0 pajodex Posted January 16, 2018 Posted January 16, 2018 6 minutes ago, luan122 said: could someone help me with getd? i have this: explode(.@opcoes$,getd(".@"+"enchantgroup"+(atoi(getarg(1))+1)+"$")[(rand(1,getarraysize(getd(".@"+"enchantgroup"+(atoi(getarg(1))+1)+"$")))-1)],","); and i'm getting this error: Hi, You could try searching at trunk/doc/script_command.txt --------------------------------------- *getd("<variable name>") Returns a reference to a variable, the name can be constructed dynamically. Refer to 'setd' for usage. This can also be used to set an array dynamically: setarray getd(".array[0]"), 1, 2, 3, 4, 5; Examples: set getd("$varRefence"), 1; set @i, getd("$" + "pikachu"); --------------------------------------- Quote
0 Feilor Posted January 16, 2018 Author Posted January 16, 2018 Just now, pajodex said: Hi, You could try searching at trunk/doc/script_command.txt --------------------------------------- *getd("<variable name>") Returns a reference to a variable, the name can be constructed dynamically. Refer to 'setd' for usage. This can also be used to set an array dynamically: setarray getd(".array[0]"), 1, 2, 3, 4, 5; Examples: set getd("$varRefence"), 1; set @i, getd("$" + "pikachu"); --------------------------------------- I know that, was there where i tried to learn but looks like i failed Quote
0 pajodex Posted January 16, 2018 Posted January 16, 2018 19 minutes ago, luan122 said: explode(.@opcoes$,getd(".@"+"enchantgroup"+(atoi(getarg(1))+1)+"$")[(rand(1,getarraysize(getd(".@"+"enchantgroup"+(atoi(getarg(1))+1)+"$")))-1)],","); try this explode(.@opcoes$,getd(".@"+"enchantgroup"+(atoi(getarg(1))+1)+"$"),[(rand(1,getarraysize(getd(".@"+"enchantgroup"+(atoi(getarg(1))+1)+"$")))-1)]); Quote
Question
Feilor
could someone help me with getd? i have this:
and i'm getting this error:
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.