Help Warning
#1

i added stock "SetPosInFrontOfPlayer"


no problem with this i added
Код:
SetPPos(playerid,Float:X,Float:Y,Float:Z) return TeleportTime[playerid] = 5,SetPlayerPos(playerid,X,Y,Z);

stock SetPosInFrontOfPlayer(playerid,giveplayerid,Float:distance)
{
	new Float:x,Float:y,Float:z,Float:a;
	GetPlayerPos(playerid, x, y,z); GetPlayerFacingAngle(playerid, a);
	x += (distance * floatsin(-a, degrees));
	y += (distance * floatcos(-a, degrees));
	SetPPos(giveplayerid,x,y,z); SetPlayerFacingAngle(giveplayerid,a);
	return true;
}
and i get warning in this stock , i was not geted warning before
pawn Код:
Float:Distance
this line
Full code
pawn Код:
stock GetClosestPlayer(const playerid) {
    new
        Float:Distance,
        target = -1;

    foreach(Player, i) {
        if (playerid != i && playerVariables[i][pSpectating] == INVALID_PLAYER_ID && (target < 0 || Distance > GetDistanceBetweenPlayers(playerid, i))) {
            target = i;
            Distance = GetDistanceBetweenPlayers(playerid, i);
        }
    }
    return target;
}
Reply


Messages In This Thread
Help Warning - by KingPersona - 03.04.2015, 19:02
Re: Help Warning - by KingPersona - 03.04.2015, 22:03
Re: Help Warning - by Evocator - 03.04.2015, 22:13
Re: Help Warning - by KingPersona - 04.04.2015, 11:01
Re: Help Warning - by KingPersona - 04.04.2015, 11:10
Re: Help Warning - by CalvinC - 04.04.2015, 11:57

Forum Jump:


Users browsing this thread: