Pomoc oko nex-ac

Započeo Alexaa, April 06, 2022, 21:03:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Pitanje/savjet: Da li neko moze da mi pomogne kako da resim ove errore kada includam nex-ac u svom mod
Problem:
[pawn]PAWNO\include\nex-ac.inc(2195) : warning 219: local variable "X" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2195) : warning 219: local variable "Y" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2195) : warning 219: local variable "Z" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2216) : warning 219: local variable "X" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2216) : warning 219: local variable "Y" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2216) : warning 219: local variable "Z" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2776) : warning 219: local variable "X" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2776) : warning 219: local variable "Y" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2776) : warning 219: local variable "Z" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2778) : warning 219: local variable "X" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2778) : warning 219: local variable "Y" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2778) : warning 219: local variable "Z" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2848) : warning 219: local variable "X" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2848) : warning 219: local variable "Y" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2848) : warning 219: local variable "Z" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2850) : warning 219: local variable "X" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2850) : warning 219: local variable "Y" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2850) : warning 219: local variable "Z" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2866) : warning 219: local variable "X" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2866) : warning 219: local variable "Y" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2866) : warning 219: local variable "Z" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2868) : warning 219: local variable "X" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2868) : warning 219: local variable "Y" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(2868) : warning 219: local variable "Z" shadows a variable at a preceding level
PAWNO\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
PAWNO\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
PAWNO\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
PAWNO\include\nex-ac.inc(8180) : error 025: function heading differs from prototype[/pawn]

U principu idi samo na te linije, i zameni imena u XX, YY, ZZ itd itd...

Citat: Fr0z3n poslato April 06, 2022, 22:45:11 POSLE PODNE
U principu idi samo na te linije, i zameni imena u XX, YY, ZZ itd itd...

Okej hvala puno,ali sad su mi ostali ovi errori ne znam kako njih da resim

PAWNO\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
PAWNO\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
PAWNO\include\nex-ac.inc(8122) : warning 202: number of arguments does not match definition
PAWNO\include\nex-ac.inc(8180) : error 025: function heading differs from prototype



[pawn]8180; forward ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);
8122; new ac_a = ac_OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, new_x, new_y, new_z, vel_x, vel_y, vel_z);[/pawn]

Pronadji u skripti OnUnoccupiedVehicleUpdate i promeni argumente ovako public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);

Citat: Fr0z3n poslato April 07, 2022, 15:13:09 POSLE PODNE
Pronadji u skripti OnUnoccupiedVehicleUpdate i promeni argumente ovako public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z);

Nece brate,posle toga mi izadje jos mali milion warninga

Onda forward zameni sa publicom u main skripti i sve sto se koristi pod ac_OnUnoccupiedVehicleUpdate