I'll just ignore the param, didn't know i could, thanks, what about problem number 2? This could be done in a loop aswell but i just can't seem to figure out how..
PHP Code:
case 0: RollTheDice(id, 25, 10)
case 1: RollTheDice(id, 50, 25)
case 2: RollTheDice(id, 125, 50)
case 3: RollTheDice(id, 250, 100)
case 4: RollTheDice(id, 600, 200)
I tried this, but it doesn't work.
PHP Code:
case 0..4: {
for(new i; i < sizeof(iCosts); i++) {
RollTheDice(id, iCosts[i], iPrices[i])
}
}
PHP Code:
new iCosts[] = {
25,
50,
125,
250,
600
}
new iPrices[] ={
10,
25,
50,
100,
200
}
__________________