I am creating in my game panels with buttons dinamically with pan_create function. I have one array of string with the name of the events an to set the events in each button I used pan_setevent function but the event did not work. My code is:
A String is something that contains text like "This is a string" and an event is a function that lets something happen, so you should decide first what you want to do when someone hits that button, and then write a function for it, and then you can assign the function to the button like
pan_setevent(mypanel,3,1,myfunction);
Hope this helps.
Re: pan_setevent problem
[Re: Spirit]
#159187 10/07/0708:4910/07/0708:49
But I take the "myfunction" from one XML file dinamically and when I take this function, it is one String type and the pan_setevent do not accent (the game close) I want to know if I could set myfunction in pan_setevent with String word.