Error while compiling
#1

Код:
orgauto[1]=AddStaticVehicle(596,1602.4104,-1703.6111,5.6111,91.5477,0,1);
orgauto[2]=AddStaticVehicle(596,1602.3221,-1699.9736,5.6115,89.2099,0,1);
orgauto[3]=AddStaticVehicle(596,1602.1750,-1696.5577,5.6120,93.0273,0,1);
orgauto[4]=AddStaticVehicle(596,1601.8885,-1692.8848,5.6154,94.8282,0,1);
orgauto[5]=AddStaticVehicle(596,1601.6981,-1669.2485,5.6112,89.9893,0,1);
orgauto[6]=AddStaticVehicle(596,1601.8351,-1672.6240,5.6138,89.5551,0,1);
orgauto[7]=AddStaticVehicle(596,1601.7260,-1675.7190,5.6111,91.0178,0,1);
orgauto[8]=AddStaticVehicle(596,1601.6012,-1679.0245,5.6105,89.6192,0,1);
orgauto[9]=AddStaticVehicle(596,1601.5099,-1682.0374,5.6112,91.1087,0,1);
orgauto[10]=AddStaticVehicle(596,1601.6473,-1685.2968,5.6111,92.1126,0,1);
orgauto[11]=AddStaticVehicle(596,1602.1160,-1688.3842,5.6105,90.3806,0,1);
orgauto[12]=AddStaticVehicle(596,1602.3761,-1691.2947,5.6114,92.0310,0,1);
errors
Код:
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(219) : error 032: array index out of bounds (variable "orgauto")
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(220) : error 032: array index out of bounds (variable "orgauto")
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(221) : error 032: array index out of bounds (variable "orgauto")
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(222) : error 032: array index out of bounds (variable "orgauto")
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(223) : error 032: array index out of bounds (variable "orgauto")
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(224) : error 032: array index out of bounds (variable "orgauto")
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(225) : error 032: array index out of bounds (variable "orgauto")
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(226) : error 032: array index out of bounds (variable "orgauto")
C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(227) : error 032: array index out of bounds (variable "orgauto")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
help
Reply
#2

Код:
new orgauto[13];
@off

You're spamming
Reply
#3

Further more, you should read this topic about arrays too: https://sampforum.blast.hk/showthread.php?tid=318212
Reply
#4

if you declared
Quote:

new orgauto[12]

You must start from 0-1... untill 11
Not from 1 to 12
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)