Jump to content

[REZOLVAT] bug clan


JustSlow
 Share

Recommended Posts

  • Username: JustSlow
  • Problema întălnită: Atunci cand cumpar un clan nu mi se salveaza in baza de date/.
  • Detalii despre problemă: Cand dau /shop si cumpar un clan ma lasa sa ii pun numele, tag-ul si dupa ce ies si intru nu mai am clan, deoarece nu se salveaza in baza de date.
  • Ce ai încercat să faci înainte să postezi?: Nimic..
  • Cod sursă (recomandat pastebin.com) : Nu primesc nici o eroare in pawno.
  • Alte detalii: Multumesc.
Link to comment
Share on other sites

new
        x,
        szString[180],
        szName[MAX_PLAYER_NAME],
        Cache: db = mysql_query(SQL, "SELECT * FROM `clans`");            

format(szDate, sizeof(szDate), "%02d/%02d/%d - %02d:%02d:%02d", Day, Month, Year, Hour, Minute, Second);
            mysql_format(SQL, query, sizeof(query), "INSERT INTO `clans` (`Name`, `Owner`, `OwnerSQL`, `RegisterDate`, `Color`, `Slots`) VALUES ('%s', '%s', '%d', '%s', 'FFFFFF', '%d')", inputtext, PlayerInfo[playerid][pUsername], PlayerInfo[playerid][pSQLID], szDate, sSlot[playerid]);
            mysql_query(SQL, query);
            new i = cache_insert_id();

Edited by Krusher
2 post -> 1 post
Link to comment
Share on other sites

Dacă foloseşti burned cred că te ajută

Citat

            format(szDate, sizeof(szDate), "%02d/%02d/%d - %02d:%02d:%02d", Day, Month, Year, Hour, Minute, Second);
            mysql_format(SQL, query, sizeof(query), "INSERT INTO `clans` (`Name`, `Owner`, `OwnerSQL`, `RegisterDate`, `Color`, `Slots`) VALUES ('%e', '%e', '%d', '%e', 'FFFFFF', '%d')", inputtext, PlayerInfo[playerid][pUsername], PlayerInfo[playerid][pSQLID], szDate, sSlot[playerid]);
            new Cache: result = mysql_query(SQL, query);
            new i = cache_insert_id();
            cache_delete(result);

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...