How to fix this ?
#1

pawn Код:
D:\Game\Rockstar Game\Server\GOGS\gamemodes\R.pwn(18689) : error 032: array index out of bounds (variable "SASDVehicles")
D:\Game\Rockstar Game\Server\GOGS\gamemodes\R.pwn(18690) : error 032: array index out of bounds (variable "SASDVehicles")
D:\Game\Rockstar Game\Server\GOGS\gamemodes\R.pwn(18691) : error 032: array index out of bounds (variable "SASDVehicles")
D:\Game\Rockstar Game\Server\GOGS\gamemodes\R.pwn(18692) : error 032: array index out of bounds (variable "SASDVehicles")
D:\Game\Rockstar Game\Server\GOGS\gamemodes\R.pwn(18693) : error 032: array index out of bounds (variable "SASDVehicles")
D:\Game\Rockstar Game\Server\GOGS\gamemodes\R.pwn(18694) : error 032: array index out of bounds (variable "SASDVehicles")
D:\Game\Rockstar Game\Server\GOGS\gamemodes\R.pwn(18695) : error 032: array index out of bounds (variable "SASDVehicles")
D:\Game\Rockstar Game\Server\GOGS\gamemodes\R.pwn(18696) : error 032: array index out of bounds (variable "SASDVehicles")
D:\Game\Rockstar Game\Server\GOGS\gamemodes\R.pwn(18697) : error 032: array index out of bounds (variable "SASDVehicles")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.
pawn Код:
SASDVehicles[0] = AddStaticVehicle(599,626.2231,-610.1102,16.9531,270.9771,0,1,VEHICLE_RESPAWN); //
    SASDVehicles[1] = AddStaticVehicle(596,626.4227,-606.7841,16.4627,274.2971,0,1,VEHICLE_RESPAWN); //
    SASDVehicles[2] = AddStaticVehicle(596,624.1349,-598.1441,16.7116,270.3701,0,1,VEHICLE_RESPAWN); //
    SASDVehicles[3] = AddStaticVehicle(596,624.1025,-602.5707,16.7145,272.8433,0,1,VEHICLE_RESPAWN); //
    SASDVehicles[4] = AddStaticVehicle(599,611.6521,-588.2211,17.4152,269.9820,0,1,VEHICLE_RESPAWN); //
    SASDVehicles[5] = AddStaticVehicle(599,624.6603,-588.2292,17.1156,270.1024,0,1,VEHICLE_RESPAWN); //
    SASDVehicles[6] = AddStaticVehicle(599,634.8185,-561.1407,16.5300,357.7258,0,1,VEHICLE_RESPAWN); //
    SASDVehicles[7] = AddStaticVehicle(599,634.4486,-579.4117,16.5229,356.8494,0,1,VEHICLE_RESPAWN); //
    SASDVehicles[8] = AddStaticVehicle(497,611.9930,-608.7286,22.8958,269.0915,0,1,VEHICLE_RESPAWN); //
    SASDVehicles[9] = AddStaticVehicle(497,611.9047,-597.8776,22.9029,269.0232,0,1,VEHICLE_RESPAWN);
Reply
#2

Код:
new SASDVehicles[10];
Код:
    SASDVehicles[0] = AddStaticVehicle(599,626.2231,-610.1102,16.9531,270.9771,0,1); //
    SASDVehicles[1] = AddStaticVehicle(596,626.4227,-606.7841,16.4627,274.2971,0,1); //
    SASDVehicles[2] = AddStaticVehicle(596,624.1349,-598.1441,16.7116,270.3701,0,1); //
    SASDVehicles[3] = AddStaticVehicle(596,624.1025,-602.5707,16.7145,272.8433,0,1); //
    SASDVehicles[4] = AddStaticVehicle(599,611.6521,-588.2211,17.4152,269.9820,0,1); //
    SASDVehicles[5] = AddStaticVehicle(599,624.6603,-588.2292,17.1156,270.1024,0,1); //
    SASDVehicles[6] = AddStaticVehicle(599,634.8185,-561.1407,16.5300,357.7258,0,1); //
    SASDVehicles[7] = AddStaticVehicle(599,634.4486,-579.4117,16.5229,356.8494,0,1); //
    SASDVehicles[8] = AddStaticVehicle(497,611.9930,-608.7286,22.8958,269.0915,0,1); //
    SASDVehicles[9] = AddStaticVehicle(497,611.9047,-597.8776,22.9029,269.0232,0,1);
EDIT: last number in AddStaticVehicle is 1); put it -1 if you don't want to cars respwan automaticly
Reply
#3

Thanks problem solved anyway +1 rep
Reply
#4

Quote:
Originally Posted by warlord321
Посмотреть сообщение
Thanks problem solved anyway +1 rep
No problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)