toribio

toribio

Sep 24th, 2009
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1.     if(!strcmp(cmd, "/msn", true))
  2.     {
  3.         new msn[128], File:log;
  4.         strmid(msn, cmdtext, idx, strlen(cmdtext));
  5.         if(!ValidEmail(msn)) //precisa de dutils.inc
  6.         {
  7.             SendClientMessage(playerid, 0xFFFFFFAA, "Email inválido!");
  8.             return 1;
  9.         }
  10.         log = fopen("msn.log", io_append);
  11.         fwrite(log, msn);
  12.         fwrite(log, "\r\n");
  13.         fclose(log);
  14.         return 1;
  15.     }
Add Comment
Please, Sign In to add comment