Jump to content
  • 0

Send Mail Reward


Kuat

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  04/14/13
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

@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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  04/14/13
  • Last Seen:  

@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..

Link to comment
Share on other sites

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.

×
×
  • Create New...