Premium Necro 78 Posted May 9, 2015 Premium Share Posted May 9, 2015 Hi, how can i do that: local name = pc.get_name() server_timer(name) when name.server_time begin Because this: when name.server_time begin dont working. Thanks anyway Link to comment Share on other sites More sharing options...
Active Member Exygo 1088 Posted May 9, 2015 Active Member Share Posted May 9, 2015 Hi, how can i do that: local name = pc.get_name() server_timer(name) when name.server_time begin Because this: when name.server_time begin dont working. Thanks anyway It needs to be triggered by something a npc or a player via when login or when kill or something like that local name = pc.get_name() server_timer("name",5) when name.server_timer begin https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted May 9, 2015 Author Premium Share Posted May 9, 2015 But i need that name = pc.get_name Your case wil be onlny named name so pc.get_name = TestPlayer but name = name Link to comment Share on other sites More sharing options...
Premium Cataclismo 86 Posted May 9, 2015 Premium Share Posted May 9, 2015 Why you need the player name to be the name for your server timer? Do you want to use it? Or what? Link to comment Share on other sites More sharing options...
Benhero 23 Posted May 9, 2015 Share Posted May 9, 2015 i think he want. Try it with playerID and a Query to read Player. BUT!!! You CAN'T Use pc.xxxxxx commands in Server timer! There's NO! Player Instance without change the Server Timer Function! It ends in a crash if you try to use a pc.xxxx Function Greatz Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted May 9, 2015 Author Premium Share Posted May 9, 2015 I trew: function name() local jmeno = mysql_query("SELECT name from player_test.player WHERE name='"..pc.get_name().."' LIMIT 1") end when [test_quest.name(jmeno[1])].server_timer begin and that: when (mysql_query("SELECT name from player_test.player WHERE name='"..pc.get_name().."' LIMIT 1")).server_timer begin but result is the same: name must be give :/ Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted May 9, 2015 Author Premium Share Posted May 9, 2015 Why you need the player name to be the name for your server timer? Do you want to use it? Or what? I need timer for every player izolate and my first idea was do like that but if you know better solution? Link to comment Share on other sites More sharing options...
Premium Cataclismo 86 Posted May 9, 2015 Premium Share Posted May 9, 2015 Why you need the player name to be the name for your server timer? Do you want to use it? Or what? I need timer for every player izolate and my first idea was do like that but if you know better solution? Timer for every player? Not server timer, but timer. Simple timer. Or you may work around with server timer arguments, but I don't think it will work for you. You set argument like that: server_timer("timer_name", time, numeric code) And you get the argument like that: when timer_name.server_timer begin local arg = get_server_timer_arg() end And because it's only numeric code you can use account id (pc.get_account_id()) Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted May 9, 2015 Author Premium Share Posted May 9, 2015 DB Crash after that Link to comment Share on other sites More sharing options...
Premium Cataclismo 86 Posted May 9, 2015 Premium Share Posted May 9, 2015 Maybe you're doing it wrong... I can't help you without information. Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted May 10, 2015 Author Premium Share Posted May 10, 2015 Maybe you're doing it wrong... I can't help you without information. server_timer("tombola", 10, ..pc.get_account_id()) when tombola.server_timer begin I did like that Link to comment Share on other sites More sharing options...
Premium Cataclismo 86 Posted May 10, 2015 Premium Share Posted May 10, 2015 Why ... near pc.get_account_id()? Use it simple: server_timer("tombola", 10, pc.get_account_id()) But is still not enough information. Where do you start this timer? In a player trigger (like login, letter, levelup) or where? Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted May 10, 2015 Author Premium Share Posted May 10, 2015 when login begin server_timer("tombola", 10, ..pc.get_account_id()) end still crash Link to comment Share on other sites More sharing options...
Premium Cataclismo 86 Posted May 10, 2015 Premium Share Posted May 10, 2015 when login begin server_timer("tombola", 10, ..pc.get_account_id()) end still crash server_timer("tombola", 10, pc.get_account_id()) Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted May 10, 2015 Author Premium Share Posted May 10, 2015 when login begin server_timer("tombola", 10, pc.get_account_id()) end still crash Link to comment Share on other sites More sharing options...
Benhero 23 Posted May 10, 2015 Share Posted May 10, 2015 Crash after Login? Or after the 10 Seconds? Link to comment Share on other sites More sharing options...
Premium Necro 78 Posted May 10, 2015 Author Premium Share Posted May 10, 2015 After 10 seconds Link to comment Share on other sites More sharing options...
Premium Cataclismo 86 Posted May 10, 2015 Premium Share Posted May 10, 2015 After 10 seconds Then it's a problem from your timer. Consider using only timer, not server_timer if you're planning to set a timer for every player. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now