Problem mit /enter

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
  • if(strcmp(cmd, "/enter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
    if (IsPlayerInRangeOfPoint(playerid,3.0,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
    {
    //printf("Found House :%d",i);
    if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
    {
    SetPlayerInterior(playerid,HouseInfo[i][hInt]);
    SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
    GameTextForPlayer(playerid, "~w~Willkommen zu Hause", 5000, 1);
    PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
    PlayerInfo[playerid][pLocal] = i;
    SetPlayerVirtualWorld(playerid,i);
    }
    else
    {
    GameTextForPlayer(playerid, "~r~Verschlossen", 5000, 1);
    }
    }
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,2632.7478,1824.1743,11.0234))
    {
    SetPlayerPos(playerid,-2636.5781,1403.4066,906.4609);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    }


    so, & das andere 7enter kannste dann Löschen ;)

  • #PWN du Blind?, jetzt haste das in der Schleife mit drin..?


    if(strcmp(cmd, "/enter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
    if (IsPlayerInRangeOfPoint(playerid,3.0,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
    {
    //printf("Found House :%d",i);
    if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
    {
    SetPlayerInterior(playerid,HouseInfo[i][hInt]);
    SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
    GameTextForPlayer(playerid, "~w~Willkommen zu Hause", 5000, 1);
    PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
    PlayerInfo[playerid][pLocal] = i;
    SetPlayerVirtualWorld(playerid,i);
    }
    else
    {
    GameTextForPlayer(playerid, "~r~Verschlossen", 5000, 1);
    }
    }
    }
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,2632.7478,1824.1743,11.0234))
    {
    SetPlayerPos(playerid,-2636.5781,1403.4066,906.4609);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    }


    Oska: so stimmt es ;) ^-



  • Geht immernoch nicht -.-

  • if(IsPlayerConnected(playerid))
    {
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
    if (IsPlayerInRangeOfPoint(playerid,3.0,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
    {
    //printf("Found House :%d",i);
    if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
    {
    SetPlayerInterior(playerid,HouseInfo[i][hInt]);
    SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
    GameTextForPlayer(playerid, "~w~Willkommen zu Hause", 5000, 1);
    PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
    PlayerInfo[playerid][pLocal] = i;
    SetPlayerVirtualWorld(playerid,i);
    }
    else
    {
    GameTextForPlayer(playerid, "~r~Verschlossen", 5000, 1);
    }
    }
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,2632.7478,1824.1743,11.0234))
    {
    SetPlayerPos(playerid,-2636.5781,1403.4066,906.4609);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,0);
    }
    }



  • Jetzt bekomm ich die Errors: error 017: undefined symbol "UnFreezePlayer"
    error 017: undefined symbol "FRAC_OnPlayerEnterVehicle
    error 017: undefined symbol "IsPlayerInFrac"
    error 017: undefined symbol "IsPlayerInFrac"
    error 017: undefined symbol "FreezePlayer"
    error 017: undefined symbol "UnFreezePlayer"
    error 017: undefined symbol "IsPlayerInFrac"
    error 017: undefined symbol "IsPlayerInFrac"
    error 017: undefined symbol "IsPlayerInFrac"
    error 017: undefined symbol "IsPlayerInFrac"
    error 017: undefined symbol "SpielerName"
    error 017: undefined symbol "SpielerName"
    error 017: undefined symbol "IsPlayerInFrac"
    error 017: undefined symbol "RemoveRoadblock"
    error 017: undefined symbol "FreezePlayer"
    error 017: undefined symbol "FreezePlayer"
    error 017: undefined symbol "SetPlayerToKnast"
    error 017: undefined symbol "IsPlayerInFrac"
    error 017: undefined symbol "IsPlayerInFrac"
    error 017: undefined symbol "SpielerName"
    error 017: undefined symbol "SpielerName"
    error 017: undefined symbol "SpielerName"
    error 017: undefined symbol "SpielerName"
    error 017: undefined symbol "SpielerName"
    error 017: undefined symbol "UnFreezePlayer"
    error 017: undefined symbol "UnFreezePlayer"


    ich krieg das /enter einfach nicht hin -.-

  • Da fehlen auch 2 Klammers {-}


    Zeig mal dien ganzen Befehl noch einmal..wie er JeTZT drin ist!!



    if(strcmp(cmd, "/enter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
    if (IsPlayerInRangeOfPoint(playerid,3.0,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
    {
    //printf("Found House :%d",i);
    if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
    {
    SetPlayerInterior(playerid,HouseInfo[i][hInt]);
    SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
    GameTextForPlayer(playerid, "~w~Willkommen zu Hause", 5000, 1);
    PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
    PlayerInfo[playerid][pLocal] = i;
    SetPlayerVirtualWorld(playerid,i);
    }
    else
    {
    GameTextForPlayer(playerid, "~r~Verschlossen", 5000, 1);
    }
    }
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,2632.7478,1824.1743,11.0234))
    {
    SetPlayerPos(playerid,-2636.5781,1403.4066,906.4609);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    }

  • if(strcmp(cmd, "/enter", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    for(new i = 0; i < sizeof(HouseInfo); i++)
    {
    if (IsPlayerInRangeOfPoint(playerid,3.0,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
    {
    //printf("Found House :%d",i);
    if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
    {
    SetPlayerInterior(playerid,HouseInfo[i][hInt]);
    SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]);
    GameTextForPlayer(playerid, "~w~Willkommen zu Hause", 5000, 1);
    PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
    PlayerInfo[playerid][pLocal] = i;
    SetPlayerVirtualWorld(playerid,i);
    }
    else
    {
    GameTextForPlayer(playerid, "~r~Verschlossen", 5000, 1);
    }
    }
    if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    if(IsPlayerInRangeOfPoint(playerid,3.0,2632.7478,1824.1743,11.0234))
    {
    SetPlayerPos(playerid,-2636.5781,1403.4066,906.4609);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    }
    }
    return 1;


    Hat 1 Klammer gefehlt.



  • geht immernoch nicht -.-