23.07.2012, 10:26
Код:
#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.