SA-MP Forums Archive
(1235)error 035: argument type mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: (1235)error 035: argument type mismatch (/showthread.php?tid=656338)



(1235)error 035: argument type mismatch - DeXXter00 - 13.07.2018

Код:
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)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Re: (1235)error 035: argument type mismatch - DeXXter00 - 13.07.2018

Sorry For Post I Fixed Problem in COLOR.
if ( IsPlayerInAnyVehicle( playerid ) )
return SendClientMessage( playerid, COLOR_ORANGE, "ERROR: You already have a vehicle" );