26.08.2013, 22:07
i got this filterscript and when i compile it i get one error
Код:
error 025: function heading differs from prototype
Код:
CMD:ltc6( playerid, params[ ] ) { new Float:x, Float:y, Float:z, Float:Angle, carid; VipCheck( playerid, 1 ); if ( IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, RED, "ERROR: You already have a vehicle" ); #if defined VIPS_SEND_COMMAND SendVipsCommand( playerid, "/ltc6" ); #endif GetPlayerPos( playerid, x, y, z ); GetPlayerFacingAngle( playerid, Angle ); carid = CreateVehicle( 558, x, y, z, Angle, 1, -1, -1 ); PutPlayerInVehicle( playerid, carid, 0 );//-------------------------ERROR LINE??????<><><><><><><><> AddVehicleComponent( carid, 1088 ); AddVehicleComponent( carid, 1092 ); AddVehicleComponent( carid, 1073 ); AddVehicleComponent( carid, 1139 ); AddVehicleComponent( carid, 1010 ); ChangeVehiclePaintjob( carid, 1 ); SetVehicleVirtualWorld( carid, GetPlayerVirtualWorld( playerid ) ); LinkVehicleToInterior( carid, GetPlayerInterior( playerid ) ); return 1; }