Advertisement
Guest User

tolower_toupper.pwn

a guest
Sep 12th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.48 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. public OnFilterScriptInit()
  4. {
  5.     new str[] = "ÁÉÍÓÚÇÑÃÕ";
  6.     for(new i; i < strlen(str); i++) {
  7.         str[i] = tolower(str[i]);
  8.     }
  9.     print(str);
  10.    
  11.     for(new i; i < strlen(str); i++) {
  12.         str[i] = toupper(str[i]);
  13.     }
  14.     print(str);
  15.     return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20.     return 1;
  21. }
  22.  
  23. public OnPlayerText(playerid, text[]) {
  24.     for(new i; i < strlen(text); i++)
  25.         text[i] = tolower(text[i]);
  26.     SendPlayerMessageToAll(playerid, text);
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement