Kuat Posted June 10, 2013 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 17 Reputation: 0 Joined: 04/14/13 Last Seen: June 4, 2018 Share Posted June 10, 2013 (edited) Hi, Someone have a script with the function of send mail for chars.... I made this below, but retorn error player not attached..... [Error]: script_rid2sd: fatal error ! player not attached!.. OnMinute52: query_sql "SELECT `char`.`char_id`,`char`.`name` FROM `char` ORDER BY `kill`-`death` DESC LIMIT 1",@top_id, @top_name$; query_sql ("INSERT INTO `mail` (`id`, `send_name`, `send_id`, `dest_name`, `dest_id`, `title`, `message`, `time`, `status`, `zeny`, `nameid`, `amount`, `refine`, `attribute`, `identify`, `card0`, `card1`, `card2`, `card3`, `unique_id`) VALUES (NULL, 'Administrator', '150007', '"+@top_name$+"', '"+@top_id+"', 'title', 'mensage', unix_timestamp( now() ), '1', '0', '20005', '1', '0', '0', '1', '0', '0', '0', '0', '0')"); with make this function?...other with attach this player? Edited July 4, 2013 by Kuat Quote Link to comment Share on other sites More sharing options...
Capuche Posted June 10, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted June 10, 2013 @top_id, @top_name$; @top_id is a temporary variable attached to the player. With OnMinute, there is none player attached to the script. Change to .@top_id, .@top_name$; 2 Quote Link to comment Share on other sites More sharing options...
Kuat Posted June 11, 2013 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 17 Reputation: 0 Joined: 04/14/13 Last Seen: June 4, 2018 Author Share Posted June 11, 2013 @top_id, @top_name$; @top_id is a temporary variable attached to the player. With OnMinute, there is none player attached to the script. Change to .@top_id, .@top_name$; Thank you, God bless you.. Quote Link to comment Share on other sites More sharing options...
Question
Kuat
Hi, Someone have a script with the function of send mail for chars....
I made this below, but retorn error player not attached..... [Error]: script_rid2sd: fatal error ! player not attached!..
with make this function?...other with attach this player?
Edited by KuatLink to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.