Код:
CMD:ltc( playerid, params[ ] )
{
LoginCheck(playerid);
VipCheck(playerid, 1);
new Float:x, Float:y, Float:z, Float:Angle, VehiclulRt;
if ( IsPlayerInAnyVehicle ( playerid ))
return SendClientMessage( playerid, orange, "ERROR: You already have a vehicle" );
GetPlayerPos( playerid, x, y, z);
GetPlayerFacingAngle( playerid, Angle );
VehiclulRt = CreateVehicle( 560, x, y, z, Angle, 1, -1, -1 );
PutPlayerInVehicle( playerid, VehiclulRt, 0);
AddVehicleComponent( VehiclulRt, 1028 ); AddVehicleComponent( VehiclulRt, 1030 ); AddVehicleComponent( VehiclulRt, 1031 ); AddVehicleComponent( VehiclulRt, 1138 ); AddVehicleComponent(VehiclulRt, 1140); AddVehicleComponent(VehiclulRt, 1170);
AddVehicleComponent( VehiclulRt, 1028 ); AddVehicleComponent( VehiclulRt, 1030 ); AddVehicleComponent( VehiclulRt, 1031 ); AddVehicleComponent( VehiclulRt, 1138 ); AddVehicleComponent(VehiclulRt, 1140); AddVehicleComponent(VehiclulRt, 1170);
AddVehicleComponent( VehiclulRt, 1080 ); AddVehicleComponent( VehiclulRt, 1086 ); AddVehicleComponent( VehiclulRt, 1087 ); AddVehicleComponent( VehiclulRt, 1010 );
PlayerPlaySound( playerid, 1133, 0.0, 0.0, 0.0 );
ChangeVehiclePaintjob( VehiclulRt, 0 );
SetVehicleVirtualWorld( VehiclulRt, GetPlayerVirtualWorld( playerid ) );
LinkVehicleToInterior( VehiclulRt, GetPlayerInterior( playerid ) );
return 1;
}
D:\Server\filterscripts\jadmin3.pwn(1235) : error 035: argument type mismatch (argument 2)
Sorry For Post I Fixed Problem in COLOR.
return SendClientMessage( playerid, COLOR_ORANGE, "ERROR: You already have a vehicle" );