Posted By: Kitsu
showing part of an array in digit - 07/12/11 08:02
Hi,
i have a little problem with showing a part of an array in a digit.
while definination and declaration seems to work
but as i want to show it viait shows only "(null)"
also unfortunately
gives me an malfunction says: "Empty pointer in set_res" (set_res is the function called by the button from the panel with the digits above)
what i have to do to use the part of the array in the digits and iin other functions without exactly know thwat the player wants and witout writing a new function for each possibility?
i hope you can help me with it
greetings
~kitsu
i have a little problem with showing a part of an array in a digit.
while definination and declaration seems to work
Code:
STRING * res[6]; res[0] = "640 x 480"; res[1] = "800 x 600"; res[2] = "1024 x 768";
but as i want to show it via
Code:
digits(0, 0, " %s", "Arial#16", 1, res[1]);
also unfortunately
Code:
str_cpy(resolution, res[num]);
gives me an malfunction says: "Empty pointer in set_res" (set_res is the function called by the button from the panel with the digits above)
what i have to do to use the part of the array in the digits and iin other functions without exactly know thwat the player wants and witout writing a new function for each possibility?
i hope you can help me with it
greetings
~kitsu