ThatDudeJBob
Sorceror
I need a little help on something I've been working on.
I have the workable gump, all the buttons and everything work like they should.
I'm just wondering how i could record something like 'Yes' and 'No' Votes and add them together to get a Vote % for the players to see after they make a choice.
I have the workable gump, all the buttons and everything work like they should.
I'm just wondering how i could record something like 'Yes' and 'No' Votes and add them together to get a Vote % for the players to see after they make a choice.
PHP:
case (int)Buttons.ButtonYes:
{
sender.Mobile.CloseGump( typeof( VoteMainGump ) );
sender.Mobile.SendMessage( "Thank You! Your vote has been recorded." );
//ToDo: Record The Vote & If Player Already Voted, Vote Won't Count
break;
}
case (int)Buttons.ButtonNo:
{
sender.Mobile.CloseGump( typeof( VoteMainGump ) );
sender.Mobile.SendMessage( "Thank You! Your vote has been recorded." );
//ToDo: Record The Vote & If Player Already Voted, Vote Won't Count
break;
}