Hey!
Ich weiß auch nicht ... ich bin wohl zu blöd
Ich finde den Klammerfehler im folgenden Code einfach nicht
ocmd:einmieten(playerid,params[])
{
new bool:NotAtPoint[MAX_PLAYERS]=false;
new bool:HatHaus[MAX_PLAYERS]=false;
new bool:voll[MAX_PLAYERS]=false;
for(new haus=1;haus<MAX_HAUS;haus++)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof name);
new Spieler[50];
format(Spieler,50,"/Spieler/%s.txt",name);
if(dini_Int(Spieler,"Eingemietet")==0)
{
if(IsPlayerInRangeOfPoint(playerid,5,HausInfo[haus][haus_x],HausInfo[haus][haus_y],HausInfo[haus][haus_z]))
{
if(dini_Int(Hausstring,"Mieter")<5)
{
new Hausstring[50];
format(Hausstring,50,"/haus/%d.txt",haus); // Pfad formatieren
dini_IntSet(Hausstring,"Mieter",dini_Int(Hausstring,"Mieter")+1);
dini_IntSet(Spieler,"Eingemietet",1);
KillHaus(haus); // Hauspickup löschen
LoadHaus(haus); // Haus laden
return true;
}
else
{
voll[playerid]=true;
}
}
else
{
NotAtPoint[playerid]=true;
}
}
else
{
HatHaus[playerid]=true;
}
}
if(NotAtPoint[playerid])
{
return SendClientMessage(playerid,Rot,"Du bist in keinem Hauspickup!");
}
if(HatHaus[playerid])
{
return SendClientMessage(playerid,Rot,"Du hast bereits eine Mietwohnung! Benutze /mietekündigen!");
}
if(voll[playerid]))
{
return SendClientMessage(playerid,Rot,"Das Haus ist voll!");
}
return 1;
}
Edit:
Fehler:
C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(536) : error 017: undefined symbol "LoadHaus"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(540) : error 017: undefined symbol "LoadBizz"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(1649) : error 017: undefined symbol "AntiDeAMX"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2301) : error 017: undefined symbol "KillHaus"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2305) : error 017: undefined symbol "KillBizz"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2320) : error 017: undefined symbol "PlayerName"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2445) : error 017: undefined symbol "PlayerName"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2462) : error 017: undefined symbol "clearchat"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2529) : error 017: undefined symbol "SpielerSpeichern"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2538) : error 017: undefined symbol "IsPlayerAnAdmin"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2547) : error 017: undefined symbol "PlayerName"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2616) : error 017: undefined symbol "isPlayerACop"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2618) : error 017: undefined symbol "aAddPlayerWantedLevel"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2625) : error 017: undefined symbol "aGetPlayerWantedLevel"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2626) : error 017: undefined symbol "PlayerName"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2629) : error 017: undefined symbol "IsPlayerInFraktion"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2636) : error 017: undefined symbol "PlayerName"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2682) : error 017: undefined symbol "PlayerName"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2717) : error 017: undefined symbol "IsPlayerInFraktion"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2757) : error 017: undefined symbol "isPlayerACop"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2842) : error 017: undefined symbol "IsPlayerAnAdmin"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2866) : error 017: undefined symbol "aGivePlayerMoney"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2878) : error 017: undefined symbol "aGivePlayerMoney"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2890) : error 017: undefined symbol "aGivePlayerMoney"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2903) : error 017: undefined symbol "aGivePlayerMoney"C:\Users\xSpeciiaL\Desktop\0.3e RC 6 fix\gamemodes\ScriptV0.1.pwn(2914) : error 017: undefined symbol "aGivePlayerMoney"Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase26 Errors.