Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == 4)
- {
- if(response)
- {
- if(strlen(inputtext))// aici e textul :-? unde tre sa pui nush ce tu..
- {
- if(!strfind(inputtext, "@yahoo.com", true ) != -1)
- {
- aici faci un nou dialog care sa ii zica ca nu a introdus corect emailul cu @yahoo.com , @gmail.com sau altul.
- }
- else if(!strfind(inputtext, "@gmail.com", true ) != -1)
- {
- la fel la ca primul
- }
- else if(!strfind(inputtext, "@hotmail.com", true ) != -1)
- {
- la fel
- }
- else if(!strfind(inputtext, "@att.net", true ) != -1)
- {
- la fel
- }
- else
- {
- new chrisname[128], Query[256];
- GetPlayerName(playerid,chrisname,sizeof(chrisname));
- format(Query, sizeof(Query), "UPDATE `users` SET `MyEmail`='%s' WHERE `name`='%s'",inputtext,chrisname);
- mysql_query(Query);
- new Year, Month, Day, Hour, Minute, Second;
- getdate(Year, Month, Day);
- gettime(Hour, Minute, Second);
- 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);
- ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX,"Info e-mail",string,"Exit", "");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement