question about enums and switch
Example:
PHP Code:
|
Re: question about enums and switch
Why don't you test it? And yes switch statements are more efficient than using "if" multiple times.
|
Re: question about enums and switch
Quote:
|
Re: question about enums and switch
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: question about enums and switch
More correct code would be :
new Weapon :gWeapon[MAX_PLAYERS + 1] And then : gWeapon[id] = Deagle Considering a player can be in only once duel type at the same time. |
Re: question about enums and switch
fixed
PHP Code:
If i set only gWeapon[id] = Deagle , can i use it in print_chat like that: PHP Code:
I can't set gWeapon[id] = Deagle (Error : Array must be indexed) When i set gName[id] = Deagle , i can use it in chat : client_print_color(0, Red,"%s", gNames[gName[id]]) I think it is solved . |
| All times are GMT -4. The time now is 00:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.