#1

.....
Reply
#2

The first code works fine, i dont think these errors comes from it
About the second, No, adding "return 1" wont change anything as the callback does not handle returns
Reply
#3

1. The last commas should be removed, however that's not the problem on that. The problem is they way you use it.
pawn Код:
new Float:RandomSpawns[][] =
{
   {1309.1375,2085.1611,10.8203,93.1750}, // RandomSpawn 1
   {2200.9204,1390.4510,10.8203,181.6723}, // RandomSpawn 2
   {2617.5205,718.1686,10.8203,359.8032}, // RandomSpawn 3
   {1450.8284,751.4382,11.0234,92.4259} // RandomSpawn 4
};
Can you show us how do you use it?

It should be:
pawn Код:
new
    Random = random(sizeof(RandomSpawns))
;

// an example
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
2. No, it's fine.
Reply
#4

~~~~~~
Reply
#5

I told you to delete the last ",".
pawn Код:
new Float:RandomSpawns[][] =
{
   {1309.1375,2085.1611,10.8203,93.1750}, // RandomSpawn 1
   {2200.9204,1390.4510,10.8203,181.6723}, // RandomSpawn 2
   {2617.5205,718.1686,10.8203,359.8032}, // RandomSpawn 3
   {1450.8284,751.4382,11.0234,92.4259} // RandomSpawn 4
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)