Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. remove_polish_chars(Text:text, string[])
  2. {
  3. for(new i = strlen(string); i >= 0; i--)
  4. {
  5. switch(string[i])
  6. {
  7. case 'ó':
  8. string[i] = 'o';
  9. case 'ł':
  10. string[i] = 'l';
  11. case 'ż', 'ź':
  12. string[i] = 'z';
  13. case 'ą':
  14. string[i] = 'a';
  15. case 'ś':
  16. string[i] = 's';
  17. case 'ć':
  18. string[i] = 'c';
  19. case 'ń':
  20. string[i] = 'n';
  21. case 'ę':
  22. string[i] = 'e';
  23. }
  24. }
  25. old_TextDrawSetString(text, string);
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement