Advertisement
Niko_boy

Untitled

Dec 27th, 2011
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. new Query[80];
  2. format(Query,sizeof(Query),"SELECT FROM `users` WHERE `Name` = '%s' LIMIT 1;",user);
  3. mysql_query(Query);
  4. mysql_store_result();
  5.  
  6. if(mysql_num_rows() != 0)//if number of rows is different from 0 then continue
  7. {
  8. new string[128];
  9. format(string,sizeof(string),"Hi, %s! You Are Registered with PiNe, use /msg Pine login <password> to login",user);
  10. IRC_Notice(gBotID[0],user,string);
  11. }
  12. else
  13. {
  14. new string[128];
  15. format(string,sizeof(string),"Hello, %s! You Are Not Registered with PiNe, use /msg Pine register <password> to register yourself with PiNe",user);
  16. IRC_Notice(gBotID[0],user,string);
  17. }
  18. mysql_free_result()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement