new Float:Hospitals[][] =
{
{1.0, 2.0, 3.0},
{2.0, 3.0, 1.0},
{3.0, 1.0, 2.0}
};
new Float:PostDeathSpawn[MAX_PLAYERS][3];
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:dist[3];
dist[0] = GetPlayerDistanceFromPoint(playerid, Hospitals[0][0], Hospitals[0][1], Hospitals[0][2]);
dist[1] = GetPlayerDistanceFromPoint(playerid, Hospitals[1][0], Hospitals[1][1], Hospitals[1][2]);
dist[2] = GetPlayerDistanceFromPoint(playerid, Hospitals[2][0], Hospitals[2][1], Hospitals[2][2]);
SortDeepArray(dist, 0, SORT_ASC); //ERROR LINE
PostDeathSpawn[playerid][0] = Hospitals[0][0];
PostDeathSpawn[playerid][1] = Hospitals[0][1];
PostDeathSpawn[playerid][2] = Hospitals[0][2];
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, PostDeathSpawn[playerid][0], PostDeathSpawn[playerid][1], PostDeathSpawn[playerid][2]);
return 1;
}
error 001: expected token: ",", but found "["
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Falls jemand Erfahrung mit dieser Include hat, wäre es nett, wenn er/sie helfen würde!