Problem mit Selfmade Housesystem

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Alles funktioniert, häuser werden von der MySQl Datenbank gelaaden... wenn ich aber mein Haus betreten möchte stürzt der Server ab. Hier mein Command



    ocmd:enter(playerid, params[])
    {
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
    if(IsPlayerInRangeOfPoint(playerid, 1.5, HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
    {
    if(PlayerInfo[playerid][pHouseKey] == i || HouseInfo[i][hLock] == 0)
    {
    SetPlayerPos(playerid, HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
    SetPlayerInterior(playerid, HouseInfo[i][hInt]);
    SetPlayerVirtualWorld(playerid, HouseInfo[i][hVirtualW]);
    printf("HausID: %d | Interior: %d | VirtualW: %d", i, HouseInfo[i][hInt], HouseInfo[i][hVirtualW]);
    }
    else
    {
    GameTextForPlayer(playerid, "~r~Geschlossen!", 3000, 1);
    SendClientMessage(playerid, COLOR_GREY, "Dieses Haus ist verschlossen.");
    }
    }
    }
    return 1;
    }



    Ab in den Supporter's Club und einfach nichts Wissen
    Sowas nennt sich Supporter
    :thumbdown:

  • Das kommt raus :)


    [11:27:22] Debuging Test1
    [11:27:22] Debuging Test2
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test4
    [11:27:22] Debuging Test5
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3
    [11:27:22] Debuging Test3



    Ab in den Supporter's Club und einfach nichts Wissen
    Sowas nennt sich Supporter
    :thumbdown: