The online racing simulator
BTT.TEXT Error. (Dougie Cruise Base)
Hi,

I was making a "Withdraw" button so if you click on it it will display That you have to put in a number lower then 10000 to Withdraw.

This is what the Case looks like :


<?php 
case 166// Withdraw
                        
{
                            
int Withdraw int.Parse(BTT.Text);
                            if (
BTT.Text.Contains("-"))
                            {
                                
InSim.Send_MTC_MessageToConnection("^6»^7 Witdraw Error. Please don't use minus values!"BTC.UCID0);
                            }
                            if (
Withdraw 10001)
                            {
                                
InSim.Send_MTC_MessageToConnection("^6»^7 Maximum Withdraw of ^2$10000^7!"BTC.UCID0);
                            }
                            else
                            {
                                if (
Connections[GetConnIdx(BTC.UCID)].TotalBankCash Withdraw)
                                {

                                    
Connections[GetConnIdx(BTC.UCID)].TotalBankCash -= Withdraw;
                                    
Connections[GetConnIdx(BTC.UCID)].Cash += Withdraw;
                                    
InSim.Send_MTC_MessageToConnection("^6»^7 You have succesfully withdrawn ^2$" Withdraw " ^7from the bank."BTC.UCID0);
                                    
InSim.Send_BTN_CreateButton("^7Your bank balance is ^2$" Connections[GetConnIdx(BTC.UCID)].TotalBankCashFlags.ButtonStyles.ISB_LEFT4406554163BTC.UCID2false);
                                }
                                else
                                {
                                    
InSim.Send_MTC_MessageToConnection("^6»^7 You don't have enough cash to complete the transaction."BTC.UCID0);
                                }
                            }
                        }
                        break;
?>

Problem is i get an error code at

<?php 
int Withdraw 
int.Parse(BTT.Text);
                            if (
BTT.Text.Contains("-"))
?>

Witch is :

<?php 
Error 1 The name 
'BTT' does not exist in the current context
?>


I am not sure how to fix it but this is needed

Any help? Thanks!
Obviously the packet you are recieving is BTC and not BTT.
BTC is button click and BTT is button text , probably you're inserting the case under BTC instead of BTT

FGED GREDG RDFGDR GSFDG