Ékezet megjelenítése fixharc https://sampforum.hu/index.php?topic=15558.0
#include <a_samp>#if defined fixchars_included#endinput#endif#define fixchars_included#pragma library fixcharsstock Fixchar(c){switch (c){ // ßcase 223: c = 150;// ä/Äcase 228: c = 154;case 196: c = 131; // á/Á case 225: c = 152; case 193: c = 128;// é/É case 233: c = 158; case 201: c = 135; // í/Í case 237: c = 162; case 205: c = 139; // ó/Ó case 243: c = 166; case 211: c = 143;// ő/Őcase 245: c = 167; case 213: c = 144;// ö/Őcase 246: c = 168; case 214: c = 145;// ú/Úcase 250: c = 170; case 218: c = 147; // ű/Űcase 251: c = 171; case 219: c = 148; // í/Ícase 252: c = 172; case 220: c = 149;}return c;}stock FIXCHARS_GameTextForPlayer(playerid,text[],time,style){ for (new index, character; (character = getarg(1, index)); index++) setarg(1, index, Fixchar(character));return GameTextForPlayer(playerid,text,time,style);}#if defined _ALS_GameTextForPlayer #undef GameTextForPlayer#else #define _ALS_GameTextForPlayer#endif#define GameTextForPlayer FIXCHARS_GameTextForPlayerstock FIXCHARS_GameTextForAll(text[],time,style){ for (new index, character; (character = getarg(0, index)); index++) setarg(0, index, Fixchar(character));return GameTextForAll(text,time,style);}#if defined _ALS_GameTextForAll #undef GameTextForAll#else #define _ALS_GameTextForAll#endif#define GameTextForAll FIXCHARS_GameTextForAllstock Text:FIXCHARS_TextDrawCreate(Float:x, Float:y, text[]){for (new index, character; (character = getarg(2, index)); index++) setarg(2, index, Fixchar(character));return TextDrawCreate(x,y,text);}#if defined _ALS_TextDrawCreate #undef TextDrawCreate#else #define _ALS_TextDrawCreate#endif#define TextDrawCreate FIXCHARS_TextDrawCreatestock Menu:FIXCHARS_CreateMenu(title[], columns, Float:x, Float:y, Float:col1width, Float:col2width = 0.0){for (new index, character; (character = getarg(0, index)); index++) setarg(0, index, Fixchar(character));return CreateMenu(title,columns,x,y,col1width,col2width);}#if defined _ALS_CreateMenu #undef CreateMenu#else #define _ALS_CreateMenu#endif#define CreateMenu FIXCHARS_CreateMenustock FIXCHARS_SetMenuColumnHeader(Menu:menuid, column, columnheader[]){ for (new index, character; (character = getarg(2, index)); index++) setarg(2, index, Fixchar(character));return SetMenuColumnHeader(menuid, column, columnheader);}#if defined _ALS_SetMenuColumnHeader #undef SetMenuColumnHeader#else #define _ALS_SetMenuColumnHeader#endif#define SetMenuColumnHeader FIXCHARS_SetMenuColumnHeaderstock FIXCHARS_AddMenuItem(Menu:menuid, column, menutext[]){ for (new index, character; (character = getarg(2, index)); index++) setarg(2, index, Fixchar(character));return AddMenuItem(menuid, column, menutext);}#if defined _ALS_AddMenuItem #undef AddMenuItem#else #define _ALS_AddMenuItem#endif#define AddMenuItem FIXCHARS_AddMenuItemstock FIXCHARS_TextDrawSetString(Text:text, string[]){ for (new index, character; (character = getarg(1, index)); index++) setarg(1, index, Fixchar(character));return TextDrawSetString(text,string);}#if defined _ALS_TextDrawSetString #undef TextDrawSetString#else #define _ALS_TextDrawSetString#endif#define TextDrawSetString FIXCHARS_TextDrawSetString#if defined CreatePlayerTextDrawstock PlayerText:FIXCHARS_CreatePlayerTextDraw(playerid, Float:x, Float:y, text[]){for (new index, character; (character = getarg(3, index)); index++) setarg(3, index, Fixchar(character));return CreatePlayerTextDraw(playerid, x, y, text);}#if defined _ALS_CreatePlayerTextDraw #undef CreatePlayerTextDraw#else #define _ALS_CreatePlayerTextDraw#endif#define CreatePlayerTextDraw FIXCHARS_CreatePlayerTextDraw#endif#if defined PlayerTextDrawSetStringstock FIXCHARS_PlayerTextDrawSetS(playerid, PlayerText:text, string[]){for (new index, character; (character = getarg(2, index)); index++) setarg(2, index, Fixchar(character));return PlayerTextDrawSetString(playerid,text,string);}#if defined _ALS_PlayerTextDrawSetString #undef PlayerTextDrawSetString#else #define _ALS_PlayerTextDrawSetString#endif#define PlayerTextDrawSetString FIXCHARS_PlayerTextDrawSetS#endif
:wave:Próbáld meg ezt a fixchars.inc-et, és ha Notepad++-ban scriptelsz, akkor a kódolást állítsd át ANSI-ra. #include <a_samp>#if defined fixchars_included#endinput#endif#define fixchars_included#pragma library fixcharsstock Fixchar(c){switch (c){ // ßcase 223: c = 150;// ä/Äcase 228: c = 154;case 196: c = 131; // á/Á case 225: c = 152; case 193: c = 128;// é/É case 233: c = 158; case 201: c = 135; // í/Í case 237: c = 162; case 205: c = 139; // ó/Ó case 243: c = 166; case 211: c = 143;// ő/Őcase 245: c = 167; case 213: c = 144;// ö/Őcase 246: c = 168; case 214: c = 145;// ú/Úcase 250: c = 170; case 218: c = 147; // ű/Űcase 251: c = 171; case 219: c = 148; // í/Ícase 252: c = 172; case 220: c = 149;}return c;}stock FIXCHARS_GameTextForPlayer(playerid,text[],time,style){ for (new index, character; (character = getarg(1, index)); index++) setarg(1, index, Fixchar(character));return GameTextForPlayer(playerid,text,time,style);}#if defined _ALS_GameTextForPlayer #undef GameTextForPlayer#else #define _ALS_GameTextForPlayer#endif#define GameTextForPlayer FIXCHARS_GameTextForPlayerstock FIXCHARS_GameTextForAll(text[],time,style){ for (new index, character; (character = getarg(0, index)); index++) setarg(0, index, Fixchar(character));return GameTextForAll(text,time,style);}#if defined _ALS_GameTextForAll #undef GameTextForAll#else #define _ALS_GameTextForAll#endif#define GameTextForAll FIXCHARS_GameTextForAllstock Text:FIXCHARS_TextDrawCreate(Float:x, Float:y, text[]){for (new index, character; (character = getarg(2, index)); index++) setarg(2, index, Fixchar(character));return TextDrawCreate(x,y,text);}#if defined _ALS_TextDrawCreate #undef TextDrawCreate#else #define _ALS_TextDrawCreate#endif#define TextDrawCreate FIXCHARS_TextDrawCreatestock Menu:FIXCHARS_CreateMenu(title[], columns, Float:x, Float:y, Float:col1width, Float:col2width = 0.0){for (new index, character; (character = getarg(0, index)); index++) setarg(0, index, Fixchar(character));return CreateMenu(title,columns,x,y,col1width,col2width);}#if defined _ALS_CreateMenu #undef CreateMenu#else #define _ALS_CreateMenu#endif#define CreateMenu FIXCHARS_CreateMenustock FIXCHARS_SetMenuColumnHeader(Menu:menuid, column, columnheader[]){ for (new index, character; (character = getarg(2, index)); index++) setarg(2, index, Fixchar(character));return SetMenuColumnHeader(menuid, column, columnheader);}#if defined _ALS_SetMenuColumnHeader #undef SetMenuColumnHeader#else #define _ALS_SetMenuColumnHeader#endif#define SetMenuColumnHeader FIXCHARS_SetMenuColumnHeaderstock FIXCHARS_AddMenuItem(Menu:menuid, column, menutext[]){ for (new index, character; (character = getarg(2, index)); index++) setarg(2, index, Fixchar(character));return AddMenuItem(menuid, column, menutext);}#if defined _ALS_AddMenuItem #undef AddMenuItem#else #define _ALS_AddMenuItem#endif#define AddMenuItem FIXCHARS_AddMenuItemstock FIXCHARS_TextDrawSetString(Text:text, string[]){ for (new index, character; (character = getarg(1, index)); index++) setarg(1, index, Fixchar(character));return TextDrawSetString(text,string);}#if defined _ALS_TextDrawSetString #undef TextDrawSetString#else #define _ALS_TextDrawSetString#endif#define TextDrawSetString FIXCHARS_TextDrawSetString#if defined CreatePlayerTextDrawstock PlayerText:FIXCHARS_CreatePlayerTextDraw(playerid, Float:x, Float:y, text[]){for (new index, character; (character = getarg(3, index)); index++) setarg(3, index, Fixchar(character));return CreatePlayerTextDraw(playerid, x, y, text);}#if defined _ALS_CreatePlayerTextDraw #undef CreatePlayerTextDraw#else #define _ALS_CreatePlayerTextDraw#endif#define CreatePlayerTextDraw FIXCHARS_CreatePlayerTextDraw#endif#if defined PlayerTextDrawSetStringstock FIXCHARS_PlayerTextDrawSetS(playerid, PlayerText:text, string[]){for (new index, character; (character = getarg(2, index)); index++) setarg(2, index, Fixchar(character));return PlayerTextDrawSetString(playerid,text,string);}#if defined _ALS_PlayerTextDrawSetString #undef PlayerTextDrawSetString#else #define _ALS_PlayerTextDrawSetString#endif#define PlayerTextDrawSetString FIXCHARS_PlayerTextDrawSetS#endif :wave: