GetVehicleColor
#1

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
Reply
#2

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.
Reply
#3

how to understand compile the include?
I need use GetVehicleColor function in my script?
I do that, but I still get this error...
Reply
#4

Any one?
Reply
#5

No one know?
Reply
#6

Are you using the right include, man?
Reply
#7

Quote:
Originally Posted by MrMou6
Посмотреть сообщение
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
Do not open the .inc in pawno! Leave that alone.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)