IsPlayerInWater bug HELP !!
#3

Quote:
Originally Posted by Dayrion
View Post
Hello there!
You can try to change this :

PHP Code:
stock IsPlayerInWater(playerid)
{
    switch(
GetPlayerAnimationIndex(playerid))    {    case 1543,1538,1539: return true;    }
    return 
false;

edit -removed-, beat me to it

Haha, I was just writing the same thing, beat me to it. Yes, in my opinion switch statements are always better than if then in certain situations such as that.
Reply


Messages In This Thread
IsPlayerInWater bug HELP !! - by D3vin - 07.05.2016, 22:24
Re: IsPlayerInWater bug HELP !! - by Dayrion - 07.05.2016, 22:38
Re: IsPlayerInWater bug HELP !! - by BornHuman - 07.05.2016, 22:47
Re: IsPlayerInWater bug HELP !! - by Jefff - 08.05.2016, 00:19
Re: IsPlayerInWater bug HELP !! - by NeXoR - 08.05.2016, 02:58
Re: IsPlayerInWater bug HELP !! - by Lordzy - 08.05.2016, 03:35
Re: IsPlayerInWater bug HELP !! - by AbyssMorgan - 08.05.2016, 05:47
Re: IsPlayerInWater bug HELP !! - by Dayrion - 08.05.2016, 06:21

Forum Jump:


Users browsing this thread: 3 Guest(s)