[Hilfe] Server ERRORS
- Technik
- Geschlossen
- Erledigt
-
-
Poste den Code und die Fehler bitte als Text und nicht als Bild.
Tipps: Scripting-Probleme richtig erklären -
Fehler: [spoiler][C:\Users\Markus\Desktop\MrMonat Reallife\MrMonat Reallife\gamemodes\Laberstuebchen.pwn(16227) : error 032: array index out of bounds (variable "airport")
C:\Users\Markus\Desktop\MrMonat Reallife\MrMonat Reallife\gamemodes\Laberstuebchen.pwn(16228) : error 032: array index out of bounds (variable "airport")
C:\Users\Markus\Desktop\MrMonat Reallife\MrMonat Reallife\gamemodes\Laberstuebchen.pwn(16229) : error 032: array index out of bounds (variable "airport")
C:\Users\Markus\Desktop\MrMonat Reallife\MrMonat Reallife\gamemodes\Laberstuebchen.pwn(16230) : error 032: array index out of bounds (variable "airport")
C:\Users\Markus\Desktop\MrMonat Reallife\MrMonat Reallife\gamemodes\Laberstuebchen.pwn(16231) : error 032: array index out of bounds (variable "airport")
C:\Users\Markus\Desktop\MrMonat Reallife\MrMonat Reallife\gamemodes\Laberstuebchen.pwn(16232) : error 032: array index out of bounds (variable "airport")
C:\Users\Markus\Desktop\MrMonat Reallife\MrMonat Reallife\gamemodes\Laberstuebchen.pwn(16233) : error 032: array index out of bounds (variable "airport")
C:\Users\Markus\Desktop\MrMonat Reallife\MrMonat Reallife\gamemodes\Laberstuebchen.pwn(16234) : error 032: array index out of bounds (variable "airport")
C:\Users\Markus\Desktop\MrMonat Reallife\MrMonat Reallife\gamemodes\Laberstuebchen.pwn(16235) : error 032: array index out of bounds (variable "airport")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase9 Errors.
/spoiler]
Code:
/*airport[0]=AddStaticVehicle(487,1981.2321,-2316.2156,13.7056,90.1276,54,29); // airport heli 1
airport[1]=AddStaticVehicle(487,1979.2822,-2382.2454,13.7061,92.2717,54,29); // airport heli 2
airport[2]=AddStaticVehicle(487,1876.0765,-2376.2893,13.7134,178.7835,54,29); // airport heli 3
airport[3]=AddStaticVehicle(487,1854.7952,-2370.7944,13.7129,182.0779,54,29); // airport heli 4
airport[4]=AddStaticVehicle(487,1803.9185,-2418.2261,13.7052,177.5584,54,29); // airport heli 5
airport[5]=AddStaticVehicle(417,1968.5546,-2536.1619,13.6559,259.9453,0,0); // airport heli 6*/
airport[0]=AddStaticVehicle(511,2017.9149,-2637.4766,14.9354,30.3953,34,51); // airport lieferjob 1
airport[1]=AddStaticVehicle(511,1991.9708,-2636.8279,14.9422,26.9881,12,60); // airport lieferjob 2
airport[2]=AddStaticVehicle(511,1964.3981,-2635.2837,14.9359,27.7994,7,68); // airport lieferjob 3
airport[9]=AddStaticVehicle(593,1889.6388,-2620.6580,14.0037,1.9594,36,8); // airport dodo 1
airport[10]=AddStaticVehicle(593,1817.2555,-2625.4119,13.9992,6.2132,36,8); // airport dodo 2
airport[11]=AddStaticVehicle(593,1751.1743,-2619.7705,13.9999,4.6822,36,8); // airport dodo 3
airport[12]=AddStaticVehicle(593,1681.7269,-2621.7278,14.0062,356.3537,36,8); // airport dodo 4
airport[13]=AddStaticVehicle(487,-1276.5348,-621.0854,14.2771,359.8715,54,29); // airport heli 1
airport[14]=AddStaticVehicle(487,-1333.5421,-625.6743,14.2721,2.1027,54,29); // airport heli 2
airport[15]=AddStaticVehicle(593,-1365.4429,-604.9816,14.6170,301.2115,36,8); // airport dodo 1
airport[16]=AddStaticVehicle(593,-1385.4249,-570.5871,14.5954,294.8586,36,8); // airport dodo 2
airport[17]=AddStaticVehicle(593,-1370.7898,-550.4202,14.5953,261.0246,36,8); // airport dodo 3
airport[3]=AddStaticVehicle(577,1584.3806,1187.5710,10.7114,183.5392,8,10); // airport-at400 -
Ändere die Deklaration vor "airport" (new airport...) zu:
new airport[18]; -
Ändere die Deklaration vor "airport" (new airport...) zu:
new airport[18];Wo?
-
Dort wo es steht. Irgendwo in deinem Code steht "new airport...".
Suche nach "airport" und ändere die entsprechende Zeile ab. Ich kenne deinen kompletten Code nicht, daher kann ich dir die Zeile nicht nennen, außer du postest den gesamten Code via http://www.pastebin.com hier. -
Das ist der gesamte Code
[list=1][*]*airport[0]=AddStaticVehicle(487,1981.2321,-2316.2156,13.7056,90.1276,54,29); // airport heli 1[*]airport[1]=AddStaticVehicle(487,1979.2822,-2382.2454,13.7061,92.2717,54,29); // airport heli 2[*]airport[2]=AddStaticVehicle(487,1876.0765,-2376.2893,13.7134,178.7835,54,29); // airport heli 3[*]airport[3]=AddStaticVehicle(487,1854.7952,-2370.7944,13.7129,182.0779,54,29); // airport heli 4[*]airport[4]=AddStaticVehicle(487,1803.9185,-2418.2261,13.7052,177.5584,54,29); // airport heli 5[*]airport[5]=AddStaticVehicle(417,1968.5546,-2536.1619,13.6559,259.9453,0,0); // airport heli 6*/[*]airport[0]=AddStaticVehicle(511,2017.9149,-2637.4766,14.9354,30.3953,34,51); // airport lieferjob 1[*]airport[1]=AddStaticVehicle(511,1991.9708,-2636.8279,14.9422,26.9881,12,60); // airport lieferjob 2[*]airport[2]=AddStaticVehicle(511,1964.3981,-2635.2837,14.9359,27.7994,7,68); // airport lieferjob 3[*]airport[9]=AddStaticVehicle(593,1889.6388,-2620.6580,14.0037,1.9594,36,8); // airport dodo 1[*]airport[10]=AddStaticVehicle(593,1817.2555,-2625.4119,13.9992,6.2132,36,8); // airport dodo 2[*]airport[11]=AddStaticVehicle(593,1751.1743,-2619.7705,13.9999,4.6822,36,8); // airport dodo 3[*]airport[12]=AddStaticVehicle(593,1681.7269,-2621.7278,14.0062,356.3537,36,8); // airport dodo 4[*]airport[13]=AddStaticVehicle(487,-1276.5348,-621.0854,14.2771,359.8715,54,29); // airport heli 1[*]airport[14]=AddStaticVehicle(487,-1333.5421,-625.6743,14.2721,2.1027,54,29); // airport heli 2[*]airport[15]=AddStaticVehicle(593,-1365.4429,-604.9816,14.6170,301.2115,36,8); // airport dodo 1[*]airport[16]=AddStaticVehicle(593,-1385.4249,-570.5871,14.5954,294.8586,36,8); // airport dodo 2[*]airport[17]=AddStaticVehicle(593,-1370.7898,-550.4202,14.5953,261.0246,36,8); // airport dodo 3[*]airport[3]=AddStaticVehicle(577,1584.3806,1187.5710,10.7114,183.5392,8,10); // airport-at400[/list]
-
Nein, das würde so keinen Sinn geben.
STRG+A => STRG+C => http://www.pastebin.com => STRG+VDas ist dann alles.
-
Nein, das würde so keinen Sinn geben.
STRG+A => STRG+C => http://www.pastebin.com => STRG+VDas ist dann alles.
Darf ich dir das per Pn schicken?
-
Ausnahmsweise, ja.
______
EDIT: Zeile 342:
[pwn=342]new paket[4],lieferwagen[4],fschule[4],farm[11],airport[4];[/pwn]
zu:
[pwn=342]new paket[4],lieferwagen[4],fschule[4],farm[11],airport[18];[/pwn] -
Ausnahmsweise, ja.
______
EDIT: Zeile 342:
[pwn=342]new paket[4],lieferwagen[4],fschule[4],farm[11],airport[4];[/pwn]
zu:
[pwn=342]new paket[4],lieferwagen[4],fschule[4],farm[11],airport[18];[/pwn]Danke
Wurde erledigt -
breadfish.de
Hat das Thema geschlossen.