Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward TextDrawSetStringEx(Text:text, string[]);
- public TextDrawSetStringEx(Text:text, string[])
- {
- new string2[256]; format(string2, sizeof(string2), "%s", string); // you know, sometimes there's a error if using a string from the parameters to edit in a function ...
- ConvertUmlauts(string2);
- return TextDrawSetString(text, string2);
- }
- #if defined _ALS_TextDrawSetString
- #undef TextDrawSetString
- #else
- #define _ALS_TextDrawSetString
- #endif
- #define TextDrawSetString TextDrawSetStringEx
- forward GameTextForPlayerEx(playerid, const string[], time, style);
- public GameTextForPlayerEx(playerid, const string[], time, style)
- {
- new string2[256]; format(string2, sizeof(string2), "%s", string);
- ConvertUmlauts(string2);
- return GameTextForPlayer(playerid, string2, time, style);
- }
- #if defined _ALS_GameTextForPlayer
- #undef GameTextForPlayer
- #else
- #define _ALS_GameTextForPlayer
- #endif
- #define GameTextForPlayer GameTextForPlayerEx
- forward GameTextForAllEx(const string[], time, style);
- public GameTextForAllEx(const string[], time, style)
- {
- new string2[256]; format(string2, sizeof(string2), "%s", string);
- ConvertUmlauts(string2);
- return GameTextForAll(string2, time, style);
- }
- #if defined _ALS_GameTextForAll
- #undef GameTextForAll
- #else
- #define _ALS_GameTextForAll
- #endif
- #define GameTextForAll GameTextForAllEx
- forward Text:TextDrawCreateEx(Float:x,Float:y, const text[]);
- public Text:TextDrawCreateEx(Float:x,Float:y, const text[])
- {
- new string2[256]; format(string2, sizeof(string2), "%s", text);
- ConvertUmlauts(string2);
- return TextDrawCreate(x,y,string2);
- }
- #if defined _ALS_TextDrawCreate
- #undef TextDrawCreate
- #else
- #define _ALS_TextDrawCreate
- #endif
- #define TextDrawCreate TextDrawCreateEx
- forward ConvertUmlauts(string[]);
- public ConvertUmlauts(string[])
- {
- strrep(string, "Ä", "ƒ"); strrep(string, "ä", "š");
- strrep(string, "Ö", "‘"); strrep(string, "ö", "¨");
- strrep(string, "Ü", "•"); strrep(string, "ü", "¬");
- strrep(string, "ß", "–");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement