[DUV]error: 032: array index out of bounds... Erro chato...
#1

Seguinte... Eu fiz o seguinte code:

pawn Код:
//Topo

new Float:gCadeiaSpawns[10][3] = {
{-2638.5564,1433.5013,945.9173},
{-2634.2920,1432.9972,945.9173},
{-2630.2224,1433.2484,945.9173},
{-2626.0400,1433.1538,945.9173},
{-2622.4480,1433.1641,945.9173},
{-2618.5713,1433.0112,945.9173},
{-2607.5125,1433.3738,945.9173},
{-2606.2100,1429.3768,945.9173},
{-2605.9253,1425.0931,945.9173},
{-2605.9253,1425.0931,945.9173}
};

//Comando

new rand;
SetPlayerInterior(suspect, 3);
rand = random(sizeof(gCadeiaSpawns));
SetPlayerPos(suspect,gCadeiaSpawns[rand][0], gCadeiaSpawns[rand][1], gCadeiaSpawns[rand][2], gCadeiaSpawns[rand][3], gCadeiaSpawns[rand][4], gCadeiaSpawns[rand][5], gCadeiaSpawns[rand][6], gCadeiaSpawns[rand][7], gCadeiaSpawns[rand][8], gCadeiaSpawns[rand][9]);
Da erro aqui:

rand = random(sizeof(gCadeiaSpawns));

O que ta errado?? Valeu
Reply


Messages In This Thread
[DUV]error: 032: array index out of bounds... Erro chato... - by Guilherme_Canani - 18.06.2010, 00:21

Forum Jump:


Users browsing this thread: 1 Guest(s)