24.01.2012, 15:10
pawn Код:
new Float:SpawnsCivilian[][5] =
{
{-2051.7437,478.5006,35.1723,261.2405},
{-2036.9413,1194.0226,45.4453,165.4971},
{-1770.8910,1202.6089,25.1250,192.7926},
{-1551.7037,1165.8408,7.1875,56.0145}
};
new Float:SpawnsCops[][5] =
{
{-1624.7889,661.7517,-5.2422,15.6977},
{-1598.7067,679.4637,-5.2422,1.2324},
{-1614.2136,732.3307,-5.2422,359.9951},
{-1620.7598,685.4606,7.1901,190.0825}
};
OnPlayerSpawn:
pawn Код:
if(gTeam[playerid] == COP)
{
SetPlayerPos(playerid, SpawnsCops[rand][0], SpawnsCops[rand][1],SpawnsCops[rand][2]);SetPlayerFacingAngle(playerid, SpawnsCops[rand][3]);
}
if(gTeam[playerid] == CIV)
{
SetPlayerPos(playerid, SpawnsCivilian[rand][0], SpawnsCivilian[rand][1],SpawnsCivilian[rand][2]);SetPlayerFacingAngle(playerid, SpawnsCivilian[rand][3]);
}
error 017: undefined symbol "rand"
What's wrong?