Don't like ads? PRO users don't see any ads ;-)

#wii-encript

By: whiplk on Feb 6th, 2012  |  syntax: PAWN  |  size: 0.37 KB  |  hits: 124  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. //Encripta uma string...
  2.  
  3. stock wii_strhash(str[], bool:index = false) {
  4.         new
  5.             ii,
  6.             nn[128];
  7.         if(index == true) {
  8.             for( ; ii <= strlen(str); ii++ ) {
  9.                         nn[ii] = (str[ii] * 2);
  10.                 }
  11.         }
  12.         else {
  13.             for( ; ii <= strlen(str); ii++ ) {
  14.                 nn[ii] = (str[ii] / 2);
  15.                 }
  16.         }
  17.         return nn;
  18. }
  19.  
  20. //Exemplo:
  21.  
  22. printf("%s", wii_strhash("testando", true));