GetVehicleColor - 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: GetVehicleColor (
/showthread.php?tid=532796)
GetVehicleColor -
MrMou6 - 20.08.2014
Hi, how i can get vehicle color?
I tried:
https://sampforum.blast.hk/showthread.php?tid=235398
But i get this error:
Код:
...pawno\include\GetVehicleColor.inc(1) : error 010: invalid function or declaration
Re: GetVehicleColor -
Abagail - 20.08.2014
You don't compile the include, - you use the functions in your own script. For instance,
pawn Код:
CMD:vcol(playerid, params[])
{
new str[128];
if(!IsPlayerInAnyVehicle(playerid)) return 0;
new col1, col2, vehicleid = GetPlayerVehicleID(playerid);
GetVehicleColor(vehicleid, col1, col2);
format(str, sizeof(str), "Color1: %d Color2: %d", col1, col2);
SendClientMessage(playerid, -1, str);
return 1;
}
Untested.
Re: GetVehicleColor -
MrMou6 - 20.08.2014
how to understand compile the include?
I need use GetVehicleColor function in my script?
I do that, but I still get this error...
Re: GetVehicleColor -
MrMou6 - 20.08.2014
Any one?
Re: GetVehicleColor -
MrMou6 - 20.08.2014
No one know?
Re: GetVehicleColor -
DamonD - 20.08.2014
Are you using the right include, man?
Re: GetVehicleColor -
SnG.Scot_MisCuDI - 20.08.2014
Quote:
Originally Posted by MrMou6
|
Do not open the .inc in pawno! Leave that alone.