2012.pwn(44189) : error 029: invalid expression, assumed zero
2012.pwn(44189) : warning 215: expression has no effect
2012.pwn(44189) : error 001: expected token: ";", but found "if"
2012.pwn(44203) : error 029: invalid expression, assumed zero
Zeile 44189:
else if(IsPlayerInRangeOfPoint(playerid,2.0,1269.9630,-1640.8680,27.3750) || IsPlayerInRangeOfPoint(playerid,2.0,-524.7850,-504.9627,25.5234) || IsPlayerInRangeOfPoint(playerid,2.0,1649.7606,-1810.6589,13.5373))
Zeile 44203
else
Und hier der Komplette Befehl:
if(strcmp("/frakkammer", cmdtext, true) == 0)
{
if (PlayerToPoint(2.0,playerid,1712.4611,-1640.0770,20.2239) || PlayerToPoint(2.0,playerid,-2725.1821,-322.9824,7.1771) || PlayerToPoint(2.0,playerid,-2124.9392,-178.4047,35.3203) || PlayerToPoint(2.0,playerid, 2491.2468,-1691.6086,14.7656) || IsPlayerInRangeOfPoint(playerid, 5.0, 858.4053,-1642.7261,13.5555) || IsPlayerInRangeOfPoint(playerid, 3.0, 2532.8569,-1067.7076,69.5692) || IsPlayerInRangeOfPoint(playerid, 3.0, 1798.4003,-2124.1387,13.5469))
else if(IsPlayerInRangeOfPoint(playerid,2.0,1269.9630,-1640.8680,27.3750) || IsPlayerInRangeOfPoint(playerid,2.0,-524.7850,-504.9627,25.5234) || IsPlayerInRangeOfPoint(playerid,2.0,1649.7606,-1810.6589,13.5373))
{
return 1;
}
{
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))
{
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;
}
Wo liegt der Fehler? Vllt. kann mir ja einer Helfen...wäre euch sehr dankbar!
Gruß Fahne