Making this code shorter
#10

I'm guessing your function loops through the player's weapons or something like that.
You shouldn't do that, because if you call it multiple times, you're looping multiple times. It's a waste.

Either make the function suggested by Nero_3D, or just loop once and check, without using a special function for that.
Reply


Messages In This Thread
Making this code shorter - by GoldenLion - 11.07.2016, 17:01
Re: Making this code shorter - by Mencent - 11.07.2016, 17:05
Re: Making this code shorter - by GoldenLion - 11.07.2016, 17:10
Re: Making this code shorter - by Vince - 11.07.2016, 17:11
Re: Making this code shorter - by Nero_3D - 11.07.2016, 17:11
Re: Making this code shorter - by OneDay - 11.07.2016, 17:45
Re: Making this code shorter - by Mencent - 11.07.2016, 17:58
Re: Making this code shorter - by MayaEU - 11.07.2016, 17:58
Re: Making this code shorter - by DarkSkull - 11.07.2016, 18:36
Re: Making this code shorter - by Stinged - 11.07.2016, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)