Bitte mal helfen ich seh beim überblick nicht mehr durch und die leute die da leader sind bei denen soll nichts passieren..
Bekomme beim kompalieren den fehler invalid expression assumed zero ?
Hier der cood bite mal schnell helfen!
public Checkzone()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInArea(i,2330.292, -1745.026, 2604.096, -1571.325))
{
if(PlayerInfo[i][pLeader] == 13 || PlayerInfo[i][pMember] == 13) { return 0; }
new Float:hp;
GetPlayerHealth(i, hp);
SetPlayerHealth(i, hp-1);
TextDrawShowForPlayer(i,groovezone);
}
else
{
TextDrawHideForPlayer(i,groovezone);
}
if(IsPlayerInArea(i, 972.6795, -1421.311, 976.4823, -1393.677))
{
if(IsPlayerNPC(i))
{
SendClientMessageToAll(COLOR_ORANGE, "Der Bus erreicht in wenigen Minuten den Zivilspan");
}
}
else
{
///
}
if(IsPlayerInArea(i,1995.642, -1460.788, 2098.319, -1354.199))
{
if(PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 1) { }
{
new Float:hpheal;
GetPlayerHealth(i, hpheal);
SetPlayerHealth(i, hpheal+5);
TextDrawShowForPlayer(i,khzone);
}
else
{
TextDrawHideForPlayer(i,khzone);
}
if(IsPlayerInArea(i,-2483.524, -202.821, -2166.784, 61.49159))
{
if(PlayerInfo[i][pLeader] == 6 || PlayerInfo[i][pMember] == 6) { }
}
new Float:yhp;
GetPlayerHealth(i, yhp);
SetPlayerHealth(i, yhp-5);
TextDrawShowForPlayer(i,yakzone);
}
else
{
TextDrawHideForPlayer(i,yakzone);
}
}
return 0;
}