19.09.2010, 19:58
okay so i got this:
but i get this warning
on this line
but i was wondering if you could add isplayerinrangeofpoint with a object that was created?
pawn Код:
//more code
if(IsAttached[i] == true)
{
if(GetPlayerVehicleID(playerid) == i)
{
new i2 = GetPlayerVehicleID(playerid);
(VehCameraPos[i2][0]+(VehVectorPos[i2][0] * Dist),VehCameraPos[i2][1]+(VehVectorPos[i2][1] * Dist),VehCameraPos[i2][2]+(VehVectorPos[i2][2] * Dist),7,100);
new Float:armour, Float:newarmour;
GetPlayerArmour(i,armour);
if(armour > 0){
newarmour = armour - -5;
SetPlayerArmour(i,newarmour);
//more code
Quote:
C:\Documents and Settings\Will\Desktop\DeathRace0.3b\filterscripts\ minigun2.pwn(7 : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
pawn Код:
(VehCameraPos[i2][0]+(VehVectorPos[i2][0] * Dist),VehCameraPos[i2][1]+(VehVectorPos[i2][1] * Dist),VehCameraPos[i2][2]+(VehVectorPos[i2][2] * Dist),7,100);