SetVehiclePlantenumber
#1

Hello everyone, So I've been getting a problem while compiling a code

Код:
CMD:changeplate(playerid, params[])
{
	if(Player_Data[playerid][Donator] == 0)
	{
		return SCM(playerid, RED, "You need to have atleast Donator level 1 for this command.");
	}
	else
 	{
  		if(GetPlayerState(playerid != PLAYER_STATE_DRIVER))
  		{
  			return SCM(playerid, RED, "You need to be in a vehicle to change it's numberplate.");
		}
		else
    	        {
    	                new Cplate,
	 		        VehID = GetPlayerVehicleID(playerid);

       		        if(sscanf(params, "s[8]", Cplate)) return SCM(playerid, GREY, "[SERVER]: Usage: /changeplate [NUMBER/WORD COMBINATION] - Maximum 8 numbers/letters");
			if(1 > Cplate > 8)
			{
				SCM(playerid, GREY, "[SERVER]: ERROR: Your numberplate must be be between 1 and 8 characters");
			}
			else
			{
          		        SetVehicleNumberPlate(VehID, Cplate);
          		        return 1;
			}
                }
	}
	return 1;
}
And the error is:
error 035: argument type mismatch (argument 2)
Reply


Messages In This Thread
SetVehiclePlantenumber - by Duck4coder - 29.01.2014, 23:21
Re: SetVehiclePlantenumber - by ikey07 - 29.01.2014, 23:27
Re: SetVehiclePlantenumber - by Kirollos - 29.01.2014, 23:27
Re: SetVehiclePlantenumber - by Duck4coder - 29.01.2014, 23:29
Re: SetVehiclePlantenumber - by erminpr0 - 29.01.2014, 23:30
Re: SetVehiclePlantenumber - by Brandon_More - 30.01.2014, 00:24

Forum Jump:


Users browsing this thread: 1 Guest(s)