Kuat Posted June 10, 2013 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
Capuche Posted June 10, 2013 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
Kuat Posted June 11, 2013 Author 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
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 Kuat2 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.