Jump to content
  • 0

Send Mail Reward


Question

Posted (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 by Kuat

2 answers to this question

Recommended Posts

Posted
@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$;

  • Upvote 2
Posted
@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..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...