05.06.2017, 19:00
Quote:
Because you have a return right there. Return stops the function immediately.
Also use constant arrays to store the rank instead of repeating "set your rank to" a hundred times. If you ever wanted to change that message you'd have to change it in hundred different places which is far from ideal. Your current setup is also quite weird. Why not switch through factions first, then through ranks so you at least have them more or less together? Something like this might work. It gets rid of the switch structure entirely. Not tested. PHP код:
|
+rep