08.03.2011, 17:06
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;
}


