Jump to content

Raul Adrian

Membru
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Raul Adrian

  1. YCMD:asellapartament(playerid, params[], help) {
        if(PlayerInfo[playerid][pAdmin] < 6) return 1;
        new i;
        if(sscanf(params, "i", i)) return SCM(playerid, COLOR_GREY, "Syntax: {FFFFFF}/asellapartament <id>");
        if(i < 1 || i > 24) return 1;

        apartamentInfo[][User] = -1;
        format(apartamentInfo[i][apOwner], 32, "The State");
        apartamentInfo[][ Value] = 10000000;
        
        update_apartament_int(i, "Value", 10000000);
        update_apartament_int(i, "UserID", -1);
        update_apartament_str(i, "Owner", "The State");
                
        refresh_label(i);

        new string[128];
        format(string, sizeof(string), "Warning: %s a vandut apartamentul %d la stat.", GetName(playerid), i);
        SendAdminMessage(COLOR_LIGHTRED, string, 1);
        return 1;
    }

  2. warning 219: local variable "i" shadows a variable at a preceding level
      error 017: undefined symbol "apartamentInfo"
     error 029: invalid expression, assumed zero
     error 017: undefined symbol "User"
    : fatal error 107: too many error messages on one line
     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.