Ich habe hier die Coords
new Float:Tanken[][3] =
{
{1944.6609,-1771.9143,12.9115},
{1004.1435,-939.7505,41.6976},
{-89.6586,-1168.2710,2.4011},
{1004.5948,-941.6740,42.0582},
{1938.7100,-1771.7224,13.3828},
{-2025.0831,154.7683,28.8359},
{-1676.5326,412.5872,7.1797},
{-2407.7229,971.8305,45.2969},
{1597.4924,2198.0183,10.8203},
{2201.5139,2472.9739,10.8203},
{613.7665,1691.3300,6.9922},
{69.6425,1218.7981,18.8093}
};
Und hier die Function
stock IsPlayerAtTanke(playerid)
{
for(new tanke=0; tanke<sizeof(Tanken); tanke++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, Tanken[tanke][0], Tanken[tanke][1], Tanken[tanke][2], Tanken[tanke][3], Tanken[tanke][4], Tanken[tanke][5], Tanken[tanke][6], Tanken[tanke][7], Tanken[tanke][8], Tanken[tanke][9], Tanken[tanke][10,Tanken[tanke][11], Tanken[tanke][12]))
{
return 1;
}
}
return 0;
}
Bekomme aber den Error?
error 032: array index out of bounds (variable "Tanken")
Danke im Vorraus MfG JAmes