new VehID = GetClosestCar(playerid);GetVehiclePos(VehID, vX, vY, vZ);new panels, doors, lights, tires;GetVehicleDamageStatus(VehID, panels, doors, lights, tires); encode_tires(tires1, tires2, tires3, tires4){return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);}if(tire1 == 1) { format(jobbHatso, sizeof(jobbHatso), \"{fffb00}Jobb Hátsó Kerék {FFFFFF}- {FF0000}Javítás Szükséges\\n\");} else { format(jobbHatso, sizeof(jobbHatso), \"{fffb00}Jobb Hátsó Kerék {FFFFFF}- {00ff00}Nem Szükséges Javítás\\n\");}
(1579) : error 017: undefined symbol \"encode_tires\"(1581) : error 017: undefined symbol \"tires1\"(1584) : warning 225: unreachable code(1584) : error 017: undefined symbol \"tire1\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Errors.
new panels, doors, lights, tires;
new panels, doors, lights, tires, encode_tires;
encode_tires(tires1, tires2, tires3, tires4){return tires1 | (tires2 << 1) | (tires3 << 2) | (tires4 << 3);}
if(tires1 == 1) { format(jobbHatso, sizeof(jobbHatso), \"{fffb00}Jobb Hátsó Kerék {FFFFFF}- {FF0000}Javítás Szükséges\\n\");} else { format(jobbHatso, sizeof(jobbHatso), \"{fffb00}Jobb Hátsó Kerék {FFFFFF}- {00ff00}Nem Szükséges Javítás\\n\");}
(1578) : error 017: undefined symbol \"tire1\"(21254) : warning 203: symbol is never used: \"decode_tires\"(21254) : warning 203: symbol is never used: \"encode_tires\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
\" post=\"543848\" timestamp=\"1436265968\"]UGyan úgy, errort ír.. (1578) : error 017: undefined symbol \"tire1\"(21254) : warning 203: symbol is never used: \"decode_tires\"(21254) : warning 203: symbol is never used: \"encode_tires\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error. Pedig beraktam a decode, és encode részt... [/quote]most azt írja, hogy nem használod az encode-ot és a decode-ot...(valószínűleg jó helyre raktad)és nem ismeri a tire1 nevű változót amire hivatkozol...
new tire1, tire2, tire3, tire4, encode_tires, decode_tires, tires;
\" post=\"543854\" timestamp=\"1436273315\"]Szóval az elején hozzam létre? new tire1, tire2, tire3, tire4, encode_tires, decode_tires, tires; Vagy mit csináljak? [/quote] new tire1, tire2, tire3, tire4;decode_tires(tires, tire1, tire2, tire3, tire4);
new tire1, tire2, tire3, tire4;decode_tires(tires, tire1, tire2, tire3, tire4);
(131) : warning 219: local variable \"tire1\" shadows a variable at a preceding level(131) : warning 219: local variable \"tire2\" shadows a variable at a preceding level(131) : warning 219: local variable \"tire3\" shadows a variable at a preceding level(131) : warning 219: local variable \"tire4\" shadows a variable at a preceding level(133) : warning 219: local variable \"tire1\" shadows a variable at a preceding level(133) : warning 219: local variable \"tire2\" shadows a variable at a preceding level(133) : warning 219: local variable \"tire3\" shadows a variable at a preceding level(133) : warning 219: local variable \"tire4\" shadows a variable at a preceding level(21250) : warning 203: symbol is never used: \"encode_tires\"(21250) : warning 203: symbol is never used: \"tire2\"(21250) : warning 203: symbol is never used: \"tire3\"(21250) : warning 203: symbol is never used: \"tire4\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 12 Warnings.
decode_tires(tires, tire1, tire2, tire3, tire4);
(131) : warning 219: local variable \"tire1\" shadows a variable at a preceding level(131) : warning 219: local variable \"tire2\" shadows a variable at a preceding level(131) : warning 219: local variable \"tire3\" shadows a variable at a preceding level(131) : warning 219: local variable \"tire4\" shadows a variable at a preceding level(133) : warning 219: local variable \"tire1\" shadows a variable at a preceding level(133) : warning 219: local variable \"tire2\" shadows a variable at a preceding level(133) : warning 219: local variable \"tire3\" shadows a variable at a preceding level(133) : warning 219: local variable \"tire4\" shadows a variable at a preceding level