Enum- error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Enum- error (
/showthread.php?tid=276082)
Enum- error -
Shadow_Gengar - 12.08.2011
Hey guys.
Код:
enum vehgroupdata
{
vgprice,
vgname[2][156]
}
new VehicleGroups[VEHICLE_GROUPS][vehgroupdata] = {
{7500, {"Bicycles", "Zweirдder"}},
{100000, {"Cabrios", "Cabrios"}},
{50000, {"Industrials", "Industriefahrzeuge"}},
{75000, {"Lowrider", "Lowrider"}},
{50000, {"Offroad vehicles", "Offroad Fahrzeuge"}},
{150000, {"Public service vehicles", "Oeffentliche Servicefahrzeuge"}},
{10000, {"RC-Models", "RC-Modelle"}},
{40000, {"Midsize cars", "Mittelklassewagen"}},
{120000, {"Sportcars", "Sportwagen"}},
{60000, {"Vans & co.", "Kombis"}},
{5000, {"Trailers", "Anhдnger"}},
{200000, {"Airplanes", "Flugzeuge"}},
{150000, {"Helicopters", "Helikopter"}},
{75000, {"Other", "Sonstige"}}
};
Код:
(3) error 001: expected token: "}", but found "["
(7) warning 228: length of initialler exceeds size of the enum field
(7) error 018: initialization data exceeds declared size
What's the problem ? :/
Gz
Re: Enum- error -
emokidx - 12.08.2011
Quote:
Originally Posted by Shadow_Gengar
Код:
enum vehgroupdata
{
vgprice,
vgname[2][156]
}
|
i also dont really know but try..
pawn Код:
enum vehgroupdata
{
vgprice,
vgname[24],
}
AW: Enum- error -
Shadow_Gengar - 12.08.2011
Except the first error it stays the same.
Re: Enum- error -
Riddick94 - 12.08.2011
pawn Код:
new VehicleGroups[VEHICLE_GROUPS][vehgroupdata] = {
{7500, "Bicycles", "Zweirдder"},
{100000, "Cabrios", "Cabrios"},
{50000, "Industrials", "Industriefahrzeuge"},
{75000, "Lowrider", "Lowrider"},
{50000, "Offroad vehicles", "Offroad Fahrzeuge"},
{150000, "Public service vehicles", "Oeffentliche Servicefahrzeuge"},
{10000, "RC-Models", "RC-Modelle"},
{40000, "Midsize cars", "Mittelklassewagen"},
{120000, "Sportcars", "Sportwagen"},
{60000, "Vans & co.", "Kombis"},
{5000, "Trailers", "Anhдnger"},
{200000, "Airplanes", "Flugzeuge"},
{150000, "Helicopters", "Helikopter"},
{75000, "Other", "Sonstige"}
};
Re: Enum- error -
emokidx - 12.08.2011
EDIT: ok riddick answerd..
AW: Enum- error -
Shadow_Gengar - 12.08.2011
I knew I can do it that way, but the other one would be better.
But thanks.