mysql_query("UPDATE

10/03/2014 22:45 MrLibya#1
Hallo

I Made A Quest To Change Plyer Name + Level So I Write Like That :
Code:
                mysql_query("UPDATE player.player SET name="..string.format("%q","[Test]"..pc.get_name()).." WHERE id = "..pc.get_player_id())
                mysql_query("UPDATE player.player SET level=1 WHERE id = "..pc.get_player_id())
But Not Work , Is There Any Thing Wrong ?
10/03/2014 22:56 .yorliK#2
Do you give the database enough time to update? The player has to logout for some minutes.

Code:
mysql_query("UPDATE player.player SET name='[Test]"..pc.get_name()).."' WHERE id = '"..pc.get_player_id().."';")
mysql_query("UPDATE player.player SET level=1 WHERE id = '"..pc.get_player_id().."';")
10/03/2014 23:06 MrLibya#3
I Know But see
[Only registered and activated users can see links. Click Here To Register...]

When I Select Yes He Say Some Word Then Make Notice
But In The Game When I Select Yes He Just Close The Windos without any wrods , notice
+ nothing change in level or name , even if i logout
10/03/2014 23:09 Lord iRemix#4
Code:
mysql_query("UPDATE player.player SET name='"..string.format("%s","[Test]"..pc.get_name()).."' WHERE id = "..pc.get_player_id())
10/03/2014 23:17 Coniesan#5
U have to note, that the game is caching big data parts and syncs it every 8-10min with the database. So u'r methode don't work cause u have w8 (logged out) till the game is syncing.
Would use the "default" Quest for that:
10/03/2014 23:20 MrLibya#6
Quote:
Originally Posted by [iRemix] View Post
Code:
mysql_query("UPDATE player.player SET name='"..string.format("%s","[Test]"..pc.get_name()).."' WHERE id = "..pc.get_player_id())
Same
Quote:
Originally Posted by Coniesan View Post
U have to note, that the game is caching big data parts and syncs it every 8-10min with the database. So u'r methode don't work cause u have w8 (logged out) till the game is syncing.
Would use the "default" Quest for that:
Did You Read My Reply ?
10/03/2014 23:33 Coniesan#7
Quote:
Originally Posted by MrLibya View Post
Did You Read My Reply ?
Honestly no. :D
So it's changing the name and level after relogg, but doesn't execute the say() functions?!
Does u'r syserr sais anything?
10/04/2014 00:16 MrLibya#8
Quote:
Originally Posted by Coniesan View Post
Honestly no. :D
So it's changing the name and level after relogg, but doesn't execute the say() functions?!
Does u'r syserr sais anything?
My Syserr Sleep :D
Just Kidding :
Code:
SYSERR: Sep 29 01:36:21 :: Select: wrong QUEST_SELECT request! : 57766
SYSERR: Sep 29 01:41:19 :: heart_idle: losing 182 seconds. (lag occured)
SYSERR: Sep 29 01:42:02 :: operator(): QUEST NOT END RUNNING on Login/Logout - PRO
SYSERR: Sep 29 01:42:27 :: Select: wrong QUEST_SELECT request! : 57766
SYSERR: Sep 29 01:49:35 :: operator(): QUEST NOT END RUNNING on Login/Logout - PRO
SYSERR: Sep 29 01:49:42 :: Select: wrong QUEST_SELECT request! : 57766
SYSERR: Sep 29 01:50:19 :: ChildLoop: AsyncSQL: query failed: Column count doesn't match value count at row 1 (query: INSERT DELAYED INTO money_log  VALUES (NOW(), 8, 27001, 78) errno: 1136)
SYSERR: Sep 29 01:50:19 :: ChildLoop: AsyncSQL: query failed: Column count doesn't match value count at row 1 (query: INSERT DELAYED INTO money_log  VALUES (NOW(), 8, 27002, 874) errno: 1136)
SYSERR: Sep 29 01:52:38 :: operator(): QUEST NOT END RUNNING on Login/Logout - PRO
SYSERR: Sep 29 01:52:45 :: Select: wrong QUEST_SELECT request! : 57766
SYSERR: Sep 29 01:53:26 :: operator(): QUEST NOT END RUNNING on Login/Logout - PRO
SYSERR: Sep 29 01:53:32 :: Select: wrong QUEST_SELECT request! : 57766
SYSERR: Sep 29 01:54:09 :: operator(): QUEST NOT END RUNNING on Login/Logout - PRO
SYSERR: Sep 29 01:54:11 :: Select: wrong QUEST_SELECT request! : 57766
SYSERR: Sep 29 02:32:17 :: heart_idle: losing 111 seconds. (lag occured)
SYSERR: Sep 29 02:33:03 :: operator(): QUEST NOT END RUNNING on Login/Logout - PRO
SYSERR: Sep 29 02:33:12 :: Select: wrong QUEST_SELECT request! : 57766
SYSERR: Sep 29 02:34:55 :: heart_idle: losing 38 seconds. (lag occured)
SYSERR: Sep 29 02:35:21 :: operator(): QUEST NOT END RUNNING on Login/Logout - PRO
SYSERR: Sep 29 02:35:42 :: Select: wrong QUEST_SELECT request! : 57766


UP
UP