Jump to content

Gigel

Membru
  • Posts

    22
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Gigel

  1. stock AddRouletteTable(idx, Float: pos_x, Float: pos_y, Float: pos_z, Float: rot_x = 0.0, Float: rot_y = 0.0, Float: rot_z = 0.0, world = 0, interior = 0, bool: create_object = false)
    {
        if(create_object) E_ROULETTE[idx][rouletteObject] = CreateDynamicObject(1978, pos_x, pos_y, pos_z, rot_x, rot_y, rot_z, world, interior);
        E_ROULETTE[idx][roulettePlayers] = 0, E_ROULETTE[idx][rouletteLabel] = CreateDynamic3DTextLabel("(( ROULETTE TABLE ))\nTable is {00BA19}available{9CBFE5}\nSlots Occupied: 0/5", 0x9CBFE5FF, pos_x, pos_y, pos_z, 10.0, .worldid = world, .interiorid = interior);
        return idx;
    }

    Pwp

  2. Atunci, cel mai probabil o sa ai o functie deja dfinita pentru a forta update in baza de date (pEmailx sau ceva asemanator)

    incearca sa adaugi condului tau linia asta:

    Update(playerid,pEmailx);

    oriunde dupa linia 

     mysql_query(SQL,str1);

    dar inainte de return 1;

     

    Exemplu:

     
    case DIALOG_REGISTER4: {
            new length = strlen(inputtext), string[64];
            if(length > 40) return ShowPlayerDialog(playerid, DIALOG_REGISTER4, DIALOG_STYLE_INPUT, "Register:", "Scrie mai jos adresa ta de email!\nExemplu: [email protected]\n\nEmail invalid!", "Ok", "");
            if(IsMail(inputtext) && response && strlen(inputtext) < 30) {
                new emailtext[64];
                mysql_real_escape_string(inputtext, emailtext);
                strmid(PlayerInfo[playerid][pEmail], emailtext, 0, strlen(emailtext), 64);
                new str1[512];
                format(str1,512,"UPDATE `users` SET `Email`='%s' WHERE `ID`='%d'",PlayerInfo[playerid][pEmail],PlayerInfo[playerid][pSQLID]);
                mysql_query(SQL,str1);
                Update(playerid,pEmailx);
                format(string, sizeof(string), "Email setat: %s.", PlayerInfo[playerid][pEmail]);
                SendClientMessage(playerid, 0xFFDE96FF, string);
                ShowPlayerDialog(playerid, DIALOG_REGISTER5, DIALOG_STYLE_INPUT, "Referral", "Ai fost adus de cineva pe aceasta comunitate?\nIntrodu codul de referral al celui care te-a adus pe server:\nDaca nu ai fost adus de nimeni apasa pe 'Close'", "Ok", "Close"); 
                return 1;
            }
            else ShowPlayerDialog(playerid, DIALOG_REGISTER4, DIALOG_STYLE_INPUT, "Email:", "Scrie mai jos adresa ta de email!\nExemplu: [email protected]\n\nEmail invalid!", "Ok", "");
        }

     

     

  3. 1 hour ago, NuamNume said:

    FormatNumber(rent), checks~TaxValue);

    "~" nu are ce sa caute acolo.. 

    incearca asa:

     

    format(string3, sizeof(string3), "PAYDAY~n~Played time: +%0.2f~n~Paycheck: $%s~n~Bank: $%s~n~Tax: $%s~n~Rent: $%s~n~Total money: $%d", PlayerInfo[pPayDay]/3600, FormatNumber(checks), FormatNumber(PlayerInfo[pAccount]), FormatNumber(TaxValue), FormatNumber(rent), checks-TaxValue);

     

     

     

    • Thanks 1
×
×
  • 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.