Advertisement
ipsBruno

(Pawn) Mascara CPF

Jul 24th, 2014
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.42 KB | None | 0 0
  1. /*
  2. * Bruno da Silva
  3. * Mascarar CPF por Pawn
  4. * http://forum.sa-mp.com/showthread.php?t=527854
  5. * Aguardando enquanto minha conta "Bruno3" não é liberada.
  6. */
  7.  
  8.  
  9.  
  10. public OnGameModeInit() {
  11.     print(Mascara("99999999999"));
  12.     // << [20:32:38] 999.999.999-99
  13. }
  14.  
  15. Mascara(n[]) {
  16.  
  17.     static s[ 18 ];
  18.    
  19.     format(s, 18, "%c%c%c.%c%c%c.%c%c%c-%c%c", n[0],n[1],n[2],  n[3],n[4],n[5],  n[6],n[7],n[8],   n[9],n[10]);
  20.    
  21.     return s;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement