Hallo.. Habe grade vom /zivil befehl das InRangeOf gelöscht. Nun schmiert der Compiler ab..
Befehl:
if(strcmp(cmd,"/zivil",true) == 0)
{
if(IsPlayerInFrac(playerid,1))
{
if(ZivilSkin[playerid] == 0)
{
ZivilSkin[playerid] = 1;
SetPlayerSkin(playerid,188);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich zivil gekleidet!");
}
else
{
ZivilSkin[playerid] = 0;
SetPlayerColor(playerid,NAMECOLOR_LSCOP);
SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich dienstlich gekleidet!");
}
}
else if(IsPlayerInFrac(playerid,2))
{
if(ZivilSkin[playerid] == 0)
{
ZivilSkin[playerid] = 1;
SetPlayerSkin(playerid,186);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich zivil gekleidet!");
}
else
{
ZivilSkin[playerid] = 0;
SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich dienstlich gekleidet!");
}
}
else if(IsPlayerInFrac(playerid,3))
{
if(ZivilSkin[playerid] == 0)
{
ZivilSkin[playerid] = 1;
SetPlayerSkin(playerid,299);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich zivil gekleidet!");
}
else
{
ZivilSkin[playerid] = 0;
SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich dienstlich gekleidet!");
}
}
else if(IsPlayerInFrac(playerid,21))
{
if(ZivilSkin[playerid] == 0)
{
ZivilSkin[playerid] = 1;
SetPlayerSkin(playerid,217);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich zivil gekleidet!");
}
else
{
ZivilSkin[playerid] = 0;
SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich dienstlich gekleidet!");
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE," Du bist nicht berechtigt diesen Befehl zu nutzen!");
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE," Du bist nicht am Kleidungspunkt!");
}
return 1;
}
{
if(IsPlayerInFrac(playerid,1))
{
if(ZivilSkin[playerid] == 0)
{
ZivilSkin[playerid] = 1;
SetPlayerSkin(playerid,188);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich zivil gekleidet!");
}
else
{
ZivilSkin[playerid] = 0;
SetPlayerColor(playerid,NAMECOLOR_LSCOP);
SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich dienstlich gekleidet!");
}
}
else if(IsPlayerInFrac(playerid,2))
{
if(ZivilSkin[playerid] == 0)
{
ZivilSkin[playerid] = 1;
SetPlayerSkin(playerid,186);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich zivil gekleidet!");
}
else
{
ZivilSkin[playerid] = 0;
SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich dienstlich gekleidet!");
}
}
else if(IsPlayerInFrac(playerid,3))
{
if(ZivilSkin[playerid] == 0)
{
ZivilSkin[playerid] = 1;
SetPlayerSkin(playerid,299);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich zivil gekleidet!");
}
else
{
ZivilSkin[playerid] = 0;
SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich dienstlich gekleidet!");
}
}
else if(IsPlayerInFrac(playerid,21))
{
if(ZivilSkin[playerid] == 0)
{
ZivilSkin[playerid] = 1;
SetPlayerSkin(playerid,217);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich zivil gekleidet!");
}
else
{
ZivilSkin[playerid] = 0;
SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
SendClientMessage(playerid,COLOR_WHITE," Du hast dich dienstlich gekleidet!");
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE," Du bist nicht berechtigt diesen Befehl zu nutzen!");
}
}
else
{
SendClientMessage(playerid,COLOR_WHITE," Du bist nicht am Kleidungspunkt!");
}
return 1;
}
Ich schätze es ist ein Klammerfehler, finde ihn allerdings nicht..
MFG