Random chances
#1

Hello buddies

Can someone help me? I wonder how can I make that when you attempt a robbery your chances to succes are random
I already made the robbery system but I just want know how to do that thing about random chances
Thanks
Reply
#2

pawn Код:
new change = Random(1);
switch(change)
{
case 1:
{
//Success
}
case 2:
{
//Failure
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)