10.07.2014, 15:25
Hi,
I have a problem with the prison cells.
I tried to do this:
It didn't work.
What is the correctly syntax of this?
I have a problem with the prison cells.
Код:
new Float:PrisonCells[][0] = { {146.641326,1086.450805,523.917419}, // Cell ID 0 {143.410385,1086.557373,523.917419}, // Cell ID 1 {140.075027,1086.834594,523.917419}, // Cell ID 2 {125.594047,1086.595458,523.917419}, // Cell ID 3 {122.502304,1086.180175,523.911437}, // Cell ID 4 {119.788101,1086.267700,523.911437} // Cell ID 5 };
Код:
new id = random(sizeof(PrisonCells)); SetPlayerPos(playerid, PrisonCells[id][1],PrisonCells[id][2],PrisonCells[id][3],PrisonCells[id][4],PrisonCells[id][5]);
What is the correctly syntax of this?