Nice done
Great Job RyDeR`
|
Can This be used for if when the player gets out of the car it gets the player facing angle, the Model and the Position and use this too get the vehicle colour and use that too create a new car?
|
new Colorz1,Colorz2;
GetVehicleColor(AutopoeAuto[playerid], Colorz1,Colorz2);
SetPVarInt(playerid, "CC", Colorz2);
Current directory: E:\GTA San Andreas\Server 0.3d STROAD\gamemodes E:\GTA San Andreas\Server 0.3d STROAD\Notepad++\PAWNO\include\GetVehicleColor.inc(1) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. ================ READY ================
#if defined _ALS_AddStaticVehicle
#undef AddStaticVehicle
#else
#define _ALS_AddStaticVehicle
#endif
#define AddStaticVehicle n_AddStaticVehicle
#if defined _ALS_AddStaticVehicleEx
#undef AddStaticVehicleEx
#else
#define _ALS_AddStaticVehicleEx
#endif
#define AddStaticVehicleEx n_AddStaticVehicleEx
#if defined _ALS_CreateVehicle
#undef CreateVehicle
#else
#define _ALS_CreateVehicle
#endif
#define CreateVehicle n_CreateVehicle
#if defined _ALS_DestroyVehicle
#undef DestroyVehicle
#else
#define _ALS_DestroyVehicle
#endif
#define DestroyVehicle n_DestroyVehicle
#if defined _ALS_ChangeVehicleColor
#undef ChangeVehicleColor
#else
#define _ALS_ChangeVehicleColor
#endif
#define ChangeVehicleColor n_ChangeVehicleColor
#if defined _ALS_OnVehicleRespray
#undef OnVehicleRespray
#else
#define _ALS_OnVehicleRespray
#endif
#define OnVehicleRespray n_OnVehicleRespray
forward n_OnVehicleRespray(playerid, vehicleid, color1, color2);
pawno\include\GetVehicleColor.inc(15) : warning 219: local variable "color1" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(15) : warning 219: local variable "color2" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(33) : warning 219: local variable "color1" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(33) : warning 219: local variable "color2" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(51) : warning 219: local variable "color1" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(51) : warning 219: local variable "color2" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(76) : warning 219: local variable "color1" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(76) : warning 219: local variable "color2" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(87) : warning 219: local variable "color1" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(87) : warning 219: local variable "color2" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(102) : warning 219: local variable "color1" shadows a variable at a preceding level pawno\include\GetVehicleColor.inc(102) : warning 219: local variable "color2" shadows a variable at a preceding level
new col1, col2
GetVehicleColor(GetPlayerVehicleID(0), col1, col2);
printf("cols %d, %d", col1, col2;
?
gamemodes\wip.pwn(6176) : warning 202: number of arguments does not match definition