Jump to content

PoOwAa

Inactive Member
  • Posts

    4
  • Joined

  • Last visited

  • Feedback

    0%

About PoOwAa

  • Birthday 01/03/1994

Informations

  • Gender
    Male

Social Networks

Recent Profile Visitors

785 profile views

PoOwAa's Achievements

Newbie

Newbie (1/16)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. Yeah both use sql, but the questflags are cached when the player logs in, so it use 1 query. Your solution use lots of queries. I hope you can feel the difference. Btw your solution is good too. Best regards.
  2. <?php $playerID = 12; $langs = "SELECT lValue FROM player.quest WHERE dwPID = ".. $playerID .." AND szName='mlanguage' AND szState='lang'"; $langq = mysql_query($langs); $langt = mysql_fetch_array($langq); $lang = $langt[0]; ?> Try it. But change $playerID. I think you will get it from session. Best regards.
  3. Hi! Why MySql? Okay it's good if you have a mysql function, but in this case it's unnecessary. I think it would be better, if you would do it like this: questlib.lua function pc.get_lang() local ret = pc.getf("mlanguage", "lang") return ret end function pc.set_lang(value) pc.setf("mlanguage", "lang", value) end And now you can use it without mysql function. Best regards.
×
×
  • 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.