Feilor Posted January 16, 2018 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 135 Reputation: 17 Joined: 12/31/11 Last Seen: January 11 Share 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 Link to comment Share on other sites More sharing options...
0 pajodex Posted January 16, 2018 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: April 14 Share 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 Link to comment Share on other sites More sharing options...
0 Feilor Posted January 16, 2018 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 135 Reputation: 17 Joined: 12/31/11 Last Seen: January 11 Author Share 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 Link to comment Share on other sites More sharing options...
0 pajodex Posted January 16, 2018 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: April 14 Share 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 Link to comment Share on other sites More sharing options...
Question
Feilor
could someone help me with getd? i have this:
and i'm getting this error:
Link to comment
Share on other sites
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.