This code causes Runtime error 22
#2

pawn Код:
//Change
new rnd = random(sizeof(SpawnPoints));
//to
new rnd = random(sizeof(SpawnPoints[]));
Additionaly

pawn Код:
new SpawnVehicles[][]
You don't need 2d array for single numbers, use
pawn Код:
new SpawnVehicles[]
instead.

Then change
pawn Код:
SpawnVehicles[rand][0]
to
pawn Код:
SpawnVehicles[rand]
Reply


Messages In This Thread
This code causes Runtime error 22 - by Stefand - 07.08.2013, 07:29
Re: This code causes Runtime error 22 - by Misiur - 07.08.2013, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)