• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Many warnings related to types or...?
#5
Thank you all for the answers.

In the conclusion that's how variables definitions now works with open.mp library.

Also, for the warning "warning 213: tag mismatch: expected tag "bool", but found none ("_")" in the above case:

Code:
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehID, engine, lights, alarm, doors, bonnet, boot, objective);

The solution is to define the type of the variables as bool like so:
Code:
new bool:engine, bool:lights, bool:alarm, bool:doors, bool:bonnet, bool:boot, bool:objective;
GetVehicleParamsEx(vehID, engine, lights, alarm, doors, bonnet, boot, objective);

Similar with the old "Float" declaration from the old a_samp library.

Many thanks!
  Reply


Messages In This Thread
RE: Many warnings related to types or...? - by SyNNzka - 2024-01-07, 02:24 PM

Forum Jump: