Help!!! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help!!! (
/showthread.php?tid=236946)
Help!!! -
alanhutch - 08.03.2011
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;
}
Re: Help!!! -
Fool - 08.03.2011
okay, whats the problem?
Re: Help!!! -
airsoft - 08.03.2011
(10440)- What line would that be?
Re: Help!!! -
grand.Theft.Otto - 09.03.2011
What line is 10440...?
Re: Help!!! -
airsoft - 09.03.2011
Quote:
Originally Posted by grand.Theft.Otto
What line is 10440...?
|
... i just asked that!!!
Re: Help!!! -
[WF]Demon - 09.03.2011
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.