Hello
i need help with a clicking button system
i have to create a few buttons the proplem is [ No Action ]
Here my code
BANK EXAMPLE
Can everywher tell me
how to make a button clickable
z.b the button [Insert amount] and when i click this button i have insert the amount in to the bank.....
Sry for my bad english
Regard
Seidel
i need help with a clicking button system
i have to create a few buttons the proplem is [ No Action ]
Here my code
BANK EXAMPLE
// City Bank
int BankDist = ((int)Math.Sqrt(Math.Pow(MCI.Info[i].X - (296 * 196608), 2) + Math.Pow(MCI.Info[i].Y - (-331 * 196608), 2)) / 65536);
if (BankDist < 4 && (MCI.Info[i].Speed / 147) <= 3)
{
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].InBank == 0)
{
MCI_Update(MCI.Info[i].PLID);
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].InBank = 1;
[COLOR=Red] InSim.Send_BTN_CreateButton("", Flags.ButtonStyles.ISB_DARK, 40, 40, 25, 80, 210, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^6Welcome to the ^7Bank", Flags.ButtonStyles.ISB_DARK, 8, 40, 25, 80, 211, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^6!insert: ^7[ AMOUNT ]", Flags.ButtonStyles.ISB_CLICK, 5, 40, 35, 80, 213, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^6!balance", Flags.ButtonStyles.ISB_CLICK, 5, 40, 40, 80, 212, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^6!withdraw: ^7 [ AMOUNT ]", Flags.ButtonStyles.ISB_CLICK, 5, 40, 45, 80, 214, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^6!bankbonus", Flags.ButtonStyles.ISB_CLICK, 5, 40, 50, 80, 215, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);[/COLOR]
}
}
else if (BankDist > 14)
{
MCI_Update(MCI.Info[i].PLID);
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].InBank = 0;
[COLOR=Red]InSim.Send_BFN_DeleteButton(0, 210, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID);
InSim.Send_BFN_DeleteButton(0, 211, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID);
InSim.Send_BFN_DeleteButton(0, 212, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID);
InSim.Send_BFN_DeleteButton(0, 213, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID);
InSim.Send_BFN_DeleteButton(0, 214, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID);
InSim.Send_BFN_DeleteButton(0, 215, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID);
[/COLOR]
}
Can everywher tell me
how to make a button clickable
z.b the button [Insert amount] and when i click this button i have insert the amount in to the bank.....
Sry for my bad english
Regard
Seidel