car owner prob. - 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: car owner prob. (
/showthread.php?tid=459632)
car owner prob. -
Baumann - 24.08.2013
hey wuts on my code wrong ?
PHP код:
if(getplayervehicle(playerid) && if(GetPlayer[vehicleid][owner] == 1 )
{GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid,engine, lights, alarm, 0, bonnet, boot, objective);
}
}
return 1;
error 010: invalid function or declaration
error 010: invalid function or declaration
2 Errors
Re: car owner prob. -
PT - 24.08.2013
pawn Код:
if(GetPlayerVehicleID(playerid) && GetPlayer[vehicleid][owner] == 1)
{
new vehicleid, engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid,engine, lights, alarm, 0, bonnet, boot, objective);
}
return 1;
that is the first error i saw
pawn Код:
if(getplayervehicle(playerid) && if(GetPlayer[vehicleid][owner] == 1 )
pawn is case sensetive ( i dont know write this word well )