Jump to content

Hik

Member
  • Posts

    276
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Posts posted by Hik

  1.  

    Hi guys.

    I followed a guide on a turkish forum on how to implement the sash system.

    However, when I compile the game I get errors .

     

    OBJDIR/acce.o: In function `Acce_add_item(CHARACTER*, int, int)':


    /root/workspace/Server/game/src/acce.cpp:804: undefined reference to `CHARACTER::GetInventoryItem(unsigned short) const'
    OBJDIR/acce.o: In function `Acce_make(CHARACTER*)':
    /root/workspace/Server/game/src/acce.cpp:605: undefined reference to `CHARACTER::AutoGiveAcce(unsigned int, unsigned char, int, int, bool)'
    gmake: *** [Makefile:129: ../game_r40267_32] Error 1

     

    How can i fix?

  2. Sorry, my error.

    I tried so (i have mysql.query | mysql.direct_query | mysql.update | mysql.real_escape_string | mysql.get_table_postfix in quest_function):

    local kill = mysql.query("SELECT p_kill FROM account.account WHERE id = '"..pc.get_account_id().."'") 
     

    but I get:

     

    attempt to concatenate local 'kill' (a table value)

     

     

  3. Hi guys.

    I have this script :

     

    local kill = mysql.query("SELECT p_kill FROM account.account WHERE id = (SELECT account_id FROM player.player WHERE name='"..pc.get_name().."');")[1][1]
    
    

    notice_all("Punti ottenuti: "..kill.."")
    
    

     

    When I run the script I get this error : attempt to concatenate global 'kill'  (a nil value) .

    I created the table p_kill and I can run with success the query: 

    mysql.query("UPDATE account.account SET p_kill = p_kill + 1 WHERE id = (SELECT account_id FROM player.player WHERE name='"..pc.get_name().."');")
    
    

    What's the matter?

    Sorry for my bad english.
                    

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.