Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Query[80];
- format(Query,sizeof(Query),"SELECT FROM `users` WHERE `Name` = '%s' LIMIT 1;",user);
- mysql_query(Query);
- mysql_store_result();
- if(mysql_num_rows() != 0)//if number of rows is different from 0 then continue
- {
- new string[128];
- format(string,sizeof(string),"Hi, %s! You Are Registered with PiNe, use /msg Pine login <password> to login",user);
- IRC_Notice(gBotID[0],user,string);
- }
- else
- {
- new string[128];
- format(string,sizeof(string),"Hello, %s! You Are Not Registered with PiNe, use /msg Pine register <password> to register yourself with PiNe",user);
- IRC_Notice(gBotID[0],user,string);
- }
- mysql_free_result()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement