27.01.2017, 01:48
Quote:
you may not have initialized the array is this part on your code?you probably forgot it.That is the only probability of giving random() always zero.
Код:
enum SpawnLocation { Spawnname[256], Float:SpawnX, Float:SpawnY, Float:SpawnZ, Float:SpawnAngle } static const TruckerSpawn[][SpawnLocation] = { // Positions, (Spawnname, X, Y, Z and Facing Angle) //{"Tierra Robada",-1278.0699,2709.5935,50.2663,299.5070}, //{"Shady Creeks",-1561.4307,-2733.6567,48.7435,236.4525}, {"UNKOWN Spawn_Name", 2269.3945,-2343.9868,13.5469,314.4856} }; |