Hi everyone,
I there a way to turn the content of a string to the name of a variable and read the content of the variable as the number?
Im looking at this to a for() function:
for example:
for(c=1; c<npc.skill33; c++)
{
str_cpy(ent_skill,"npc.skill");
i=20+c;
str_for_num(skill_n,i);
str_cat(ent_skill,skill_n);
temp=(content of the variale named as the content of the string"ent_skill"
}
or if this isnt possible, could someone tell me another way to achieve a similar result, the idea is to read trough a list in an array without writing all the instruction for each member.
Thanks in advance.
Last edited by FcoElizalde; 04/12/10 17:23.