Hallo Leute,
Das ist meine Fehlermeldung:
ZitatAlles anzeigenSpoiler anzeigen
E:\samp03esvr_win32\filterscripts\Restaurant3.pwn(114) : error 001: expected token: "]", but found "-identifier-"
E:\samp03esvr_win32\filterscripts\Restaurant3.pwn(114) : error 029: invalid expression, assumed zero
E:\samp03esvr_win32\filterscripts\Restaurant3.pwn(114) : error 029: invalid expression, assumed zero
E:\samp03esvr_win32\filterscripts\Restaurant3.pwn(114) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Und das ist der Code:
- Oben:
new Restaurant[][renum] =
{
{369.47, -5.95, 1001.40, 369.80, -8.83, 1001.91, 364.94, -11.39, 1001.40, 364.63, -9.60, 1001.91, 927.67, -1353.03, 13.11, 925.68, -1353.29, 13.55, 952.29, -1379.11, 12.92, 9, 0, "Cluckin' Bell", INVALID_FOOD_PICKUP_ID},
{375.55, -119.08, 1001.02, 375.68, -120.46, 1001.63, 372.37, -133.35, 1001.02, 372.37, -131.38, 1001.63, 2105.32, -1806.44, 13.30, 2103.67, -1806.42, 13.71, 2113.72, -1788.23, 13.30, 5, 0, "Well Stacked Pizza", INVALID_FOOD_PICKUP_ID}
},
Gerichte[][][renum_gerichte] =
{
{//Cluckin' Bell
{"Cluckin' Kleines Menu", 8, 13.1},
{"Cluckin' Großes Menu", 20, 41.5},
{"Cluckin' Riesiges Menu", 40, 62.6},
{"Salat Menu", 20, 43.7}
},
{//Well Stacked Pizza
{"Freundchen", 8, 13.1},
{"Dopppel Deluxe Menu", 20, 41.5},
{"Rippchen Pizza", 40, 62.6},
{"Salat Menu", 20, 43.7}
}
};
- In einem Befehl:
for(new e = 0; e < sizeof(Restaurant); e++)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, Restaurant[e][DPosX], Restaurant[e][DPosY], Restaurant[e][DPosZ]))
{
new str[512], str_name[64], nr=0;
for(new ex = 0; ex < sizeof(Gerichte[e]); ex++) // Hier ist Zeile 114
{
for(new e = 0; e < sizeof(Restaurant); e++)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, Restaurant[e][DPosX], Restaurant[e][DPosY], Restaurant[e][DPosZ]))
{
new str[512], str_name[64], nr=0;
for(new ex = 0; ex < sizeof(Gerichte[e]); ex++) // Hier ist Zeile 114
{
Aber wie kann ich diesen Fehler beheben?
Gruß, Piet