help.
#5

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Let the stars be whatever they want to be.

Don't use the variable, do it like this:

PHP код:
if(GetPlayerWeapon(playerid) == || GetPlayerWeapon(playerid) == || ..) 
Actually no. Using a variable is much better.
You're calling GetPlayerWeapon(playerid) multiple times, while with a variable you only call it once.

What's even better is using switch.

Post a couple of lines above the code you posted here.
Reply


Messages In This Thread
help. - by AndreaSanchez - 07.03.2017, 16:02
Re: help. - by Toroi - 07.03.2017, 16:05
Re: help. - by AndreaSanchez - 07.03.2017, 16:08
Re: help. - by Toroi - 07.03.2017, 16:14
Re: help. - by Stinged - 07.03.2017, 18:31
Re: help. - by Toroi - 07.03.2017, 19:26
Re: help. - by Stinged - 08.03.2017, 19:49
Re: help. - by Toroi - 08.03.2017, 19:55
Re: help. - by SyS - 02.04.2017, 11:33
Re: help. - by GhostHacker9 - 02.04.2017, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)