Hallo Leute, ich hab da ein Problem. Und zwar wen ich viele "IsPlayerInRangeOfPoint"'s neben einander mache, bekomme ich errors
if(strcmp("/frakkammer", cmdtext, true) == 0)
{
if (PlayerToPoint(2.0,playerid,1712.4611,-1640.0770,20.2239) || PlayerToPoint(2.0,playerid,1277.5029,-808.4862,1089.9375) || PlayerToPoint(2.0,playerid,1712.4611,-1640.0770,20.2239) || PlayerToPoint(2.0,playerid, 1939.4677,982.8486,992.4688) || IsPlayerInRangeOfPoint(playerid, 5.0, 231.5756,1067.9391,1084.2061) || IsPlayerInRangeOfPoint(playerid, 3.0, 2819.4785,-1169.4138,1025.5703) || IsPlayerInRangeOfPoint(playerid, 3.0, -2642.2175,1419.0121,906.4609))
{
if(IsPlayerInFrac(playerid, 5) || IsPlayerInFrac(playerid, 6) || IsPlayerInFrac(playerid, 12) || IsPlayerInFrac(playerid, 13) || IsPlayerInFrac(playerid, 14) || IsPlayerInFrac(playerid, 16) || IsPlayerInFrac(playerid, 17) || IsPlayerInFrac(playerid, 19) || IsPlayerInFrac(playerid, 20) || IsPlayerInFrac(playerid, 23 || IsPlayerInFrac(playerid, 25))
{
ShowPlayerDialog(playerid, DIALOG_KAMMER, DIALOG_STYLE_LIST, "Fraktionskammer", "Waffen\nDrogen\nFraktions Materialien", "Auswählen", "Abbrechen");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Gang- / Mafiamitglied");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht an der Fraktionskammer!");
}
return 1;
}
Kann mir jemand da noch einpaar IsPlayerInRangeOfPoint's rein machen? Weil ich dan errors bekomme.
Postionen:
if(IsPlayerInRangeOfPoint(playerid,4.0,2495.7356,-1710.1094,1014.7422))
if(IsPlayerInRangeOfPoint(playerid,4.0,2449.9626,-1686.9868,1013.5078))
if(IsPlayerInRangeOfPoint(playerid,4.0,-2164.6052,646.8073,1057.5938))
if(IsPlayerInRangeOfPoint(playerid,4.0,948.5240,2105.1021,1011.0234))
MfG