commands with errors

Results 1 to 5 of 5
  1. #1
    Newbie Noxboy is offline
    MemberRank
    Apr 2013 Join Date
    24Posts

    commands with errors

    commands such as : /tpt /tptm /ban ...

    server source
    ServerGameLogic.cpp
    int ServerGameLogic::ProcessChatCommand(obj_ServerPlayer* plr, const char* cmd)
    {
    r3dOutToLog("cmd: %s admin:%d\n", cmd, plr->profile_.ProfileData.isDevAccount);
    if(strncmp(cmd, "/sv", 3) == 0 && plr->profile_.ProfileData.isDevAccount)
    return Cmd_SetVitals(plr, cmd);

    if(strncmp(cmd, "/tp", 3) == 0 && plr->profile_.ProfileData.isDevAccount)
    return Cmd_Teleport(plr, cmd);

    if(strncmp(cmd, "/gi", 3) == 0 && plr->profile_.ProfileData.isDevAccount)
    return Cmd_GiveItem(plr, cmd);

    if(strncmp(cmd, "/tpatm", 6) == 0 && plr->profile_.ProfileData.isDevAccount)
    return Cmd_TeleportAllToMe(plr, cmd);

    if(strncmp(cmd, "/tptm", 5) == 0 && plr->profile_.ProfileData.isDevAccount)
    return Cmd_TeleportToPlayerMe(plr, cmd);

    if(strncmp(cmd, "/tpt", 4) == 0 && plr->profile_.ProfileData.isDevAccount)
    return Cmd_TeleportToPlayer(plr, cmd);

    if(strncmp(cmd, "/kick", 5) == 0 && plr->profile_.ProfileData.isDevAccount)
    return Cmd_Kick(plr, cmd);

    if(strncmp(cmd, "/ban", 4) == 0 && plr->profile_.ProfileData.isDevAccount)
    return Cmd_Ban(plr, cmd);

    if(strncmp(cmd, "/report", 7) == 0)
    {
    r3dAddReport("%s: %s \n", plr->userName, cmd);
    return 2;
    }

    return 1;
    }
    someone help?



  2. #2
    Grand Master javaz97 is offline
    Grand MasterRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: commands with errors

    add pic error

  3. #3
    Newbie Noxboy is offline
    MemberRank
    Apr 2013 Join Date
    24Posts

    Re: commands with errors

    no error in the source and in-game command does not work.

  4. #4
    Grand Master javaz97 is offline
    Grand MasterRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: commands with errors

    add dev is 1 to account and userdata

  5. #5
    Sorcerer Supreme skyone is offline
    Member +Rank
    Nov 2013 Join Date
    254Posts

    Re: commands with errors

    Quote Originally Posted by javaz97 View Post
    add dev is 1 to account and userdata
    in the database*



Advertisement