GUI problems
Author |
Message |
bozi39

|
Posted: Sat May 13, 2006 1:20 pm Post subject: GUI problems |
|
|
Hey guys i am trying to integrate GUI radio buttons into my game but something is not working out. it always tells me that one of the varibales has no value and i dont kno y the value of that varible does not get set since i coded for it to be set when a given button is clicked. I know that this is the code i need to set the variables to their proper values because this is the exact same code i used before i integrated the buttons in there and it worked.
P.S. the game works if u set the weapon to deagle, the difficulty to corporal or general and the map to kabul
here is the source code and all files need to run the game
http://beta.yousendit.com/transfer.php?action=download&ufid=E0274F9102529E12
please please download the file and take a look because i would really like to get the buttons set up as soon as possible so i can add extra content to the game before it is due |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
HellblazerX

|
Posted: Sat May 13, 2006 8:32 pm Post subject: (No subject) |
|
|
The problem here is that you haven't initied any of the values. See, with your gun_select, map_select, and diff procedures, they only initiate the values if you select corresponding GUI button. The program does not start off with them being selected, although they may look that way, and thus the values won't be initiated, and that's where your problem is. You need to initiate your values at the beginning of your code. |
|
|
|
|
 |
bozi39

|
Posted: Sat May 13, 2006 11:23 pm Post subject: (No subject) |
|
|
thaks a lot man. I discovered that that was my problem like 2 hours after i had made the post. Now it works |
|
|
|
|
 |
|
|