Welcome to AC Web.
Results 1 to 3 of 3

Thread: c++ script

  1. #1

    Lightbulb c++ script


    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Hi, i'm having some hard time with this part of the script

    QueryResult result = WorldDatabase.PQuery("SELECT `item1`, ,`item2`,`item3`, FROM `craft_item` WHERE entry = %u", entry->GetEntry());

    if (!result)
    {
    creature->Whisper("invalid item", LANG_UNIVERSAL, player, false);
    }
    if (result)
    {
    Field* field = result->Fetch();
    uint32 item1 = field[0].GetUInt32();
    uint32 item2 = field[1].GetUInt32();
    uint32 item3 = field[2].GetUInt32();

    // whisper
    }

    the no result part works correctly but the next part leads to crash

    any ideas ?

    thanks

  2. #2
    Derp of the herp dept.

    Join Date
    Oct 2011
    Location
    Finland
    Posts
    706
    check your sql.

  3. #3

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    indeed, thank you sir !

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •