Rotating smashbar
#7

Код:
#include "a_samp.inc"
#include "a_vehicles.inc"
#include "a_objects.inc"

stock IsVehicleInObjectRangePoint(vehicleid,objectid,Float:x,Float:y,Float:z)
{
    GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
    GetObjectPos(objectid,Float:x,Float:y,Float:z);
}
foward OnVehicleModel(vehicleid);
public OnVehicleModel(vehicleid){
new Float:x,Float:y,Float:z, Float:rx, Float:ry, Float:rz;
switch(vehicleid)
{
	case 1:537;
	case 2:538;
	case 3:570;
	case 4:590;
	case 5:569;
}
if(IsVehicleInObjectRangePoint(vehicleid,1251,Float:x + 1 >= 0.1,Float:y + 1 >= 0.1,Float:z))
{
   MoveObject(1251,Float:x,Float:y,Float:z, Float:rx, Float:ry, Float:rz + 11);
   {
	   if(rx == rz)
	   {
		 SetObjectPos(1251,x + 5.5, y + 5.5, z + 5.5);
       }
	}
   if(IsObjectMoving(1251) == false && IsVehicleInObjectRangePoint(vehicleid,1251,Float:x + 1 >= 0.1,Float:y + 1 >= 0.1,Float:z))
{
    MoveObject(1251,Float:x,Float:y,Float:z, rx, ry, rz - 11);
    if(rx == rz)
	   {
		 SetObjectPos(1251,x - 5.5, y - 5.5, z - 5.5);//other functions for not have time
       }

}
}
return 0; //not certain
}
but have a errors
Код:
C:\samp server\pawno\smashbar.pwn(10) : error 010: invalid function or declaration
C:\samp server\pawno\smashbar.pwn(11) : warning 235: public function lacks forward declaration (symbol "OnVehicleModel")
C:\samp server\pawno\smashbar.pwn(15) : warning 215: expression has no effect
C:\samp server\pawno\smashbar.pwn(16) : warning 215: expression has no effect
C:\samp server\pawno\smashbar.pwn(17) : warning 215: expression has no effect
C:\samp server\pawno\smashbar.pwn(18) : warning 215: expression has no effect
C:\samp server\pawno\smashbar.pwn(19) : warning 215: expression has no effect
C:\samp server\pawno\smashbar.pwn(21) : warning 213: tag mismatch
C:\samp server\pawno\smashbar.pwn(21) : warning 213: tag mismatch
C:\samp server\pawno\smashbar.pwn(21) : warning 209: function "IsVehicleInObjectRangePoint" should return a value
C:\samp server\pawno\smashbar.pwn(30) : warning 213: tag mismatch
C:\samp server\pawno\smashbar.pwn(30) : warning 213: tag mismatch
C:\samp server\pawno\smashbar.pwn(30) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
Rotating smashbar - by m4karow - 01.12.2018, 18:21
Re: Rotating smashbar - by m4karow - 10.12.2018, 18:01
Re: Rotating smashbar - by Bombaci - 10.12.2018, 19:00
Re: Rotating smashbar - by m4karow - 12.12.2018, 16:07
Re: Rotating smashbar - by David (Sabljak) - 12.12.2018, 16:31
Re: Rotating smashbar - by Bombaci - 12.12.2018, 17:59
Re: Rotating smashbar - by Bombaci - 12.12.2018, 18:56
Re: Rotating smashbar - by ReshiramZekrom - 13.12.2018, 08:47
Re: Rotating smashbar - by Bombaci - 13.12.2018, 12:26
Re: Rotating smashbar - by m4karow - 13.12.2018, 15:49
Re: Rotating smashbar - by Threshold - 13.12.2018, 15:59
Re: Rotating smashbar - by m4karow - 13.12.2018, 16:19
Re: Rotating smashbar - by Threshold - 14.12.2018, 01:40
Re: Rotating smashbar - by m4karow - 14.12.2018, 06:31
Re: Rotating smashbar - by Bombaci - 14.12.2018, 15:02
Re: Rotating smashbar - by NaS - 14.12.2018, 17:26
Re: Rotating smashbar - by m4karow - 14.12.2018, 18:38
Re: Rotating smashbar - by NaS - 14.12.2018, 19:38
Re: Rotating smashbar - by m4karow - 15.12.2018, 05:30
Re: Rotating smashbar - by Threshold - 15.12.2018, 08:38

Forum Jump:


Users browsing this thread: 1 Guest(s)