View Single Post
  #4  
Old 04-28-2009, 02:30 AM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
on another glance, it might actually be that it may not be checking/setting strings the same way?

heres the area i'm having trouble with:

PHP Code:
function MyclassGUI_Button1.onAction() {
  if(
this.selectedprofession=profession1){
  
setstring client.playerprofession,profession1;
  
MyclassGUI_Window1.destroy();
  }
  else if(
this.selectedprofession=profession2){
  
setstring client.playerprofession,profession2;
  
MyclassGUI_Window1.destroy();
  }
  else if(
this.selectedprofession=profession3){
  
setstring client.playerprofession,profession3;
  
MyclassGUI_Window1.destroy();  
 } 
Reply With Quote