Tag mismatch for random spawns, can't figure out why.
#1

Solved, thanks to dr.lozer, can someone delete this?
Reply
#2

try this

pawn Код:
new Float:copspawns[][]= // dont put any arrays
{
    {1607.7186,-1726.2651,13.5360,181.7934},
    {1568.0874,-1696.5056,5.8906,179.2618},
    {1529.3446,-1653.9948,5.8906,274.4927}
};
//----------------------------------------
public OnPlayerSpawn(playerid)
{
   // new Float:randcop= random(sizeof(copspawns)); you added "Float:" thats why it gives warning
   new randcop= random(sizeof(copspawns));
   if(Team[playerid]==TEAM_COP) //Team is the var for storing the team.
   {
      SetPlayerPos(playerid,copspawns[randcop][0],copspawns[randcop][1],copspawns[randcop][2]);
      SetPlayerFacingAngle(playerid,copspawns[randcop][3]);
   }
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)