02.05.2015, 00:37
(
Последний раз редактировалось amirm3hdi; 02.05.2015 в 09:08.
)
Why am I getting these warns ?
Oh, Fixed it by removing : new color1,color2; in my FS,
You added this in your example...
I use this:
It prints out 0,0... what's wrong ?
Код:
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
You added this in your example...
I use this:
Код:
new col1, col2 GetVehicleColor(GetPlayerVehicleID(0), col1, col2); printf("cols %d, %d", col1, col2;