Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. if(dialogid == 4)
  2. {
  3. if(response)
  4. {
  5. if(strlen(inputtext))// aici e textul :-? unde tre sa pui nush ce tu..
  6. {
  7. if(!strfind(inputtext, "@yahoo.com", true ) != -1)
  8. {
  9. aici faci un nou dialog care sa ii zica ca nu a introdus corect emailul cu @yahoo.com , @gmail.com sau altul.
  10. }
  11. else if(!strfind(inputtext, "@gmail.com", true ) != -1)
  12. {
  13. la fel la ca primul
  14. }
  15. else if(!strfind(inputtext, "@hotmail.com", true ) != -1)
  16. {
  17. la fel
  18. }
  19. else if(!strfind(inputtext, "@att.net", true ) != -1)
  20. {
  21. la fel
  22. }
  23. else
  24. {
  25. new chrisname[128], Query[256];
  26. GetPlayerName(playerid,chrisname,sizeof(chrisname));
  27. format(Query, sizeof(Query), "UPDATE `users` SET `MyEmail`='%s' WHERE `name`='%s'",inputtext,chrisname);
  28. mysql_query(Query);
  29. new Year, Month, Day, Hour, Minute, Second;
  30. getdate(Year, Month, Day);
  31. gettime(Hour, Minute, Second);
  32. format(string, sizeof(string), "E-Mail successfully setted.\n\n{0995C8}E-Mail: {909090}%s\n{0995C8}Date: {909090}%02d/%02d/%d.\n{0995C8}Hour: {909090}%02d:%02d:%02d.\n",inputtext, Day, Month, Year, Hour, Minute, Second);
  33. ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"Info e-mail",string,"Exit", "");
  34. }
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement