IsPlayerInWater issue
#4

Quote:
Originally Posted by Ballu Miaa
View Post
So? Whats the problem?
Perhaps you should read his post:
Quote:
Originally Posted by SuperViper
View Post
Here's my IsPlayerInWater function:

pawn Code:
stock IsPlayerInWater(playerid)
{
    new animlib[10], animname[10];
    GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
    return (!strcmp(animlib, "SWIM")) ? 1 : 0;
}

Here's my test command:

pawn Code:
COMMAND:swimming(playerid, params[]) return SendClientMessageEx(playerid, -1, "%d", IsPlayerInWater(playerid));

IsPlayerInWater is always returning 1. Don't worry about my SendClientMessageEx function, it works for everything else. If you really wanna see it, here:

pawn Code:
SendClientMessageEx(playerid, color, msg[], va_args<>)
{
    new string[128];
    va_format(string, sizeof(string), msg, va_start<3>);
    SendClientMessage(playerid, color, string);
    return 1;
}
It requires a special include by y_less.
Reply


Messages In This Thread
IsPlayerInWater issue - by SuperViper - 31.05.2012, 00:55
Re: IsPlayerInWater issue - by Ballu Miaa - 31.05.2012, 01:33
Re: IsPlayerInWater issue - by SuperViper - 31.05.2012, 01:42
Re: IsPlayerInWater issue - by MP2 - 31.05.2012, 01:43
Re: IsPlayerInWater issue - by jessejanssen - 31.05.2012, 01:49
Re: IsPlayerInWater issue - by Ballu Miaa - 31.05.2012, 02:04
Re: IsPlayerInWater issue - by SuperViper - 31.05.2012, 02:10
Re: IsPlayerInWater issue - by Azazelo - 31.05.2012, 02:53
Re: IsPlayerInWater issue - by SuperViper - 31.05.2012, 03:11
Re: IsPlayerInWater issue - by MadeMan - 31.05.2012, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)