Posts: 517
Threads: 22
Joined: Mar 2010
Reputation:
0
Niether are 'better', explain why switch is better than normal if statements?
It's just a matter of preference, I prefer if statements because they use up less lines, and look better structured, both are the same speed, and do the same thing.
Posts: 2,726
Threads: 85
Joined: Jul 2010
Reputation:
0
I don't know, I prefer if statements, but as you say.
Posts: 2,726
Threads: 85
Joined: Jul 2010
Reputation:
0
@NuggaN_
We would like to know if it worked...
Posts: 103
Threads: 2
Joined: Jun 2008
Reputation:
0
i'm looking for the same but when im switching classes it's stayed appeared for 5 seconds or something even when im at another class whith another text.
I need te following;
i got for example 3 classes
clas 1 = cop
clas 2 = farmer
clas 3 = chicken bell
then i get 3 AddPlayerClasses and i wanna have a GameTextForPlayer on every class,
so i switch thoug the classes the right class message would be showen and whith this code it stays for about 5 seconds then i have to wait 5 seconds every class. it must work faster because i've seen it on other servers
Sorry for my bad englisch i hope u guys can help me out
Kind Regards
[JJ]Jordy