09.02.2019, 12:50
Quote:
I added the if statement after it stopped working. I do know how switch statements work but I'll remove the if statement to see if that changes anything. Thanks!
Edit: just realised, I'm really dumb. I didn't use SendClientMessageToAll for the Msg, sorry everyone! (: However, how can I make it so that the cases affect other numbers inbetween? Like, at 0, it should be cases 0-14 and then at 15, cases 15-49, etc. |
Code:
switch(APlayerData[playerid][StatsTruckerJobs]) { case 0..14: // StatsTruckerJobs >= 0 && StatsTruckerJobs <= 14 { // foo } case 15..49: // StatsTruckerJobs >= 15 && StatsTruckerJobs <= 49 // foobar } }