Speed Player/Veh And HP
#1

Код:
#include <a_samp>

public OnPlayerConnect(playerid)
{
	GetPlayerSpeed(playerid);
	GetVehicleSpeed(GetPlayerVehicleID(playerid));
	GetVehicleHP(GetPlayerVehicleID(playerid));
	return 1;
}

stock GetPlayerSpeed(playerid)
{
	new Float:X,Float:Y,Float:Z;
	GetPlayerVelocity(playerid,X,Y,Z);
	return floatsqroot(floatround((X * X + Y * Y + Z * Z) * 200));
}

stock GetVehicleSpeed(vehicleid)
{
	new Float:X,Float:Y,Float:Z;
	GetVehicleVelocity(vehicleid,X,Y,Z);
	return floatsqroot(floatround((X * X + Y * Y + Z * Z) * 200));
}

stock GetVehicleHP(vehicleid)
{
	new Float:Health;
	GetVehicleHealth(vehicleid,Health);
	return floatsqroot(floatround(Health / 10));
}
Код:
C:\Documents and Settings\user\Pulpit\Server\gamemodes\GM.pwn(15) : warning 213: tag mismatch
C:\Documents and Settings\user\Pulpit\Server\gamemodes\GM.pwn(22) : warning 213: tag mismatch
C:\Documents and Settings\user\Pulpit\Server\gamemodes\GM.pwn(29) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Why?
Reply


Messages In This Thread
Speed Player/Veh And HP - by Hervest1998 - 23.07.2012, 10:26
Re: Speed Player/Veh And HP - by RedJohn - 23.07.2012, 10:34
Re: Speed Player/Veh And HP - by [IKS]Niko_Hs™ - 23.07.2012, 10:38
Re: Speed Player/Veh And HP - by RedJohn - 23.07.2012, 10:41
Re: Speed Player/Veh And HP - by Hervest1998 - 23.07.2012, 10:41

Forum Jump:


Users browsing this thread: 3 Guest(s)