Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Twisted

#1
I am trying to make a slot machine with AGS but for some reason the reward system isn't working.
my script looks somewhat like this, what is wrong with it?

int cash;           // your money
int reward1 =20;   // the prize you win for three cherry's in a row
int slot1;      // the first slot
int slot2;      // the second slot
int slot3;      // the third slot

slot1 = random(3);  //gives the slot a number in wich 0 = bar, 1 = cherry, 2 = lime etc.
slot2 = random(3);
slot3 = random(3);

if(slot1 == 1 && slot2 == 1 && slot3 ==1) //three cherry's in a row
{
cash = (cash + reward1); // the prize added to your money
return cash;       // your new amount of money
}
#2
Could someone explain to me how to post multiple strings?
example: string name1 = "Bob";
                string name2 = "Bill";

Display("Hello "  name1 " and" name2);

I'm not sure how to script it but I hope this gives you an idea of what I'm trying to accomplish.
SMF spam blocked by CleanTalk