07.01.2013, 07:28
Solved, thanks to dr.lozer, can someone delete this?
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;
}