Beiträge von devgames

    I have a little problem when i combine the sash!

    log.cpp:

    log.h


    my log structure table is:

    Can be compiled with Fliege  .VDI

    Hi! this is ira source from 2017...i think..is very very clean

    In archive you will fiind

    CrientSource/extern

    ServerSource/extern

    Item/Mob/_proto.txt

    Item/Mob/_names.txt

    Config_ch1

    Config_db

    Some .py files from client

    and

    Tools


    UpdateInfo:

    how i can combine this 2 sys?

    Hello!
    i Have this code for change GoldBars
    but i can't fix it:(
    i have makes Vouchers but this......
    what is wrong here????




    Code: log.h
    1. #ifdef __GOLD_BARS__
    2. void GoldBarsLog(DWORD dwAID, DWORD dwPlayerID, DWORD dwVnum, int dlCount);
    3. #endif


    Code: log.cpp
    1. #ifdef __GOLD_BARS__
    2. void LogManager::GoldBarsLog(DWORD dwPlayerID, DWORD dwAID, DWORD dwVnum, int dlCount)
    3. {
    4. Query("INSERT INTO voucher_yang_log (player_id, account_id, item_vnum, valoare_yang, data) VALUES('%u', '%u' , '%u' , '%u' , NOW() )" , dwPlayerID, dwAID, dwVnum, dlCount);
    5. }
    6. #endif


    Code: constants.h
    1. #ifdef __GOLD_BARS__
    2. #define GOLD_BARS_NUM 5
    3. extern const DWORD GoldBarsItems[GOLD_BARS_NUM];
    4. extern const int GoldBarsValue[GOLD_BARS_NUM];
    5. #endif



    in char.h Under "public:"

    Code: char.h
    1. #ifdef __GOLD_BARS__
    2. bool ChangeGoldBars(DWORD dwVnum = 0);
    3. #endif