Help!!!
#1

What's wrong? The error is: C:\Documents and Settings\Utente\Documenti\sa_monte_carlo_rp_iltizi o_ita\Monte Carlo RolePlay - Powered by IlTizio aka Pino_Farlocco aka SnFede\pawno\MonteCarlo_Roleplay.pwn(10440) : error 035: argument type mismatch (argument 1)

Код:
stock RegisterStaticVehicle(vehicleid,isdrivable,owner[]="0", vehjob=-1, vehfaction=-1)
{
	new plate[50];
	VehicleInfo[vehicleid][visvalid]=isdrivable;
	format(VehicleInfo[vehicleid][vowner],MAX_PLAYER_NAME,"%s",owner);
	VehicleInfo[vehicleid][vfuel]=100;
	VehicleInfo[vehicleid][venginestate]=ENGINE_OFF;
	VehicleInfo[vehicleid][vislocked]=0;
	VehicleInfo[vehicleid][vhasinsurance]=-1;
	VehicleInfo[vehicleid][vmodel]=GetVehicleModel(vehicleid);
	VehicleInfo[vehicleid][vjob]=vehjob;
	VehicleInfo[vehicleid][vfaction]=vehfaction;
	format(plate,sizeof(plate),"[FC]%d - [%d]",random(99999-10000)+10000,vehicleid);
	VehicleInfo[vehicleid][vlabel_plate]=SetVehicleNumberPlate(plate, 0, 0, 0, 30, 0, 1);
	return 1;
}
Reply
#2

okay, whats the problem?
Reply
#3

(10440)- What line would that be?
Reply
#4

What line is 10440...?
Reply
#5

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
What line is 10440...?
... i just asked that!!!
Reply
#6

pawn Код:
stock RegisterStaticVehicle(vehicleid,isdrivable,owner[]="0", vehjob=-1, vehfaction=-1)
{
    new plate[50];
    VehicleInfo[vehicleid][visvalid]=isdrivable;
    format(VehicleInfo[vehicleid][vowner],MAX_PLAYER_NAME,"%s",owner);
    VehicleInfo[vehicleid][vfuel]=100;
    VehicleInfo[vehicleid][venginestate]=ENGINE_OFF;
    VehicleInfo[vehicleid][vislocked]=0;
    VehicleInfo[vehicleid][vhasinsurance]=-1;
    VehicleInfo[vehicleid][vmodel]=GetVehicleModel(vehicleid);
    VehicleInfo[vehicleid][vjob]=vehjob;
    VehicleInfo[vehicleid][vfaction]=vehfaction;
    format(plate,sizeof(plate),"[FC]%d - [%d]",random(99999-10000)+10000,vehicleid);
    VehicleInfo[vehicleid][vlabel_plate]=SetVehicleNumberPlate(vehicleid, plate);
    return 1;
}
You were not using SetVehicleNumberPlate right at all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)