Quote:
Originally Posted by Sew_Sumi
Another thing to mention, is you are using sizeof in your random spawn, so there's no need to set the array size in
PHP код:
new Float:area51[4][4] = {
{262.3471,1470.6333,10.580,89.3090},
{219.5900,1431.0100,10.5800,273.5500},
{246.3904,1361.7498,23.3703,5.0454},
{210.0943,1344.1219,10.5859,0.9721}
};
If you use
PHP код:
new Float:area51[4][] = {
{262.3471,1470.6333,10.580,89.3090},
{219.5900,1431.0100,10.5800,273.5500},
{246.3904,1361.7498,23.3703,5.0454},
{210.0943,1344.1219,10.5859,0.9721}
};
you can then add more spawns without having to change the array size all the time.
|
I think you mean,
pawn Код:
new Float:area51[][4] = {
{262.3471,1470.6333,10.580,89.3090},
{219.5900,1431.0100,10.5800,273.5500},
{246.3904,1361.7498,23.3703,5.0454},
{210.0943,1344.1219,10.5859,0.9721}
};