[ayuda] charset del server - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [ayuda] charset del server (
/showthread.php?tid=638593)
[ayuda] charset del server -
FranQ - 03.08.2017
Quiero cambiar el charset en mi server para que aparescan correctamente los caracteres espaciales como las с y las palabras acentuadas, pero no se como.
Gracias por lo que me ayuden con este tema.
Respuesta: [ayuda] charset del server -
Matyaas - 03.08.2017
Para usarlos en textdraws, gametextforplayer, gametextforall:
Код:
//-Acentos, с en gametext-y-textdraws-//
stock Desbug(string[])
{
new
szFixed[1024],
iPos,
iLen;
for (iLen = strlen(string); iPos < iLen; iPos ++)
switch (string[iPos])
{
case 'а': szFixed[iPos] = 151;
case 'б': szFixed[iPos] = 152;
case 'в': szFixed[iPos] = 153;
case 'д': szFixed[iPos] = 154;
case 'А': szFixed[iPos] = 128;
case 'Б': szFixed[iPos] = 129;
case 'В': szFixed[iPos] = 130;
case 'Д': szFixed[iPos] = 131;
case 'и': szFixed[iPos] = 157;
case 'й': szFixed[iPos] = 158;
case 'к': szFixed[iPos] = 159;
case 'л': szFixed[iPos] = 160;
case 'И': szFixed[iPos] = 134;
case 'Й': szFixed[iPos] = 135;
case 'К': szFixed[iPos] = 136;
case 'Л': szFixed[iPos] = 137;
case 'м': szFixed[iPos] = 161;
case 'н': szFixed[iPos] = 162;
case 'о': szFixed[iPos] = 163;
case 'п': szFixed[iPos] = 164;
case 'М': szFixed[iPos] = 138;
case 'Н': szFixed[iPos] = 139;
case 'О': szFixed[iPos] = 140;
case 'П': szFixed[iPos] = 141;
case 'т': szFixed[iPos] = 165;
case 'у': szFixed[iPos] = 166;
case 'ф': szFixed[iPos] = 167;
case 'ц': szFixed[iPos] = 168;
case 'Т': szFixed[iPos] = 142;
case 'У': szFixed[iPos] = 143;
case 'Ф': szFixed[iPos] = 144;
case 'Ц': szFixed[iPos] = 145;
case 'щ': szFixed[iPos] = 169;
case 'ъ': szFixed[iPos] = 170;
case 'ы': szFixed[iPos] = 171;
case 'ь': szFixed[iPos] = 172;
case 'Щ': szFixed[iPos] = 146;
case 'Ъ': szFixed[iPos] = 147;
case 'Ы': szFixed[iPos] = 148;
case 'Ь': szFixed[iPos] = 149;
case 'с': szFixed[iPos] = 174;
case 'С': szFixed[iPos] = 173;
case 'Ў': szFixed[iPos] = 64;
case 'ї': szFixed[iPos] = 175;
case '`': szFixed[iPos] = 177;
case '&': szFixed[iPos] = 38;
default: szFixed[iPos] = string[iPos];
}
return szFixed;
}
//-Para-todos-//
stock GameTextAll(texto[], time, style)
{
GameTextForAll(Desbug(texto),time,style);
return 1;
}
//-Para-1-player-//
stock GameTextPlayer(playerid,texto[], time, style)
{
GameTextForPlayer(playerid,Desbug(texto),time,style);
return 1;
}
//-Textdraw-con-caracteres-de-acentos-y-с-//
stock TextDrawCreateEx(x,y,texto[])
{
TextDrawCreate(x, y, Desbug(texto));
return 1;
}
Respuesta: [ayuda] charset del server -
FranQ - 03.08.2017
ok y para textos comunes, como en el log o en el cliente de samp
Respuesta: [ayuda] charset del server -
GraviTyh - 03.08.2017
Quote:
Originally Posted by FranQ
ok y para textos comunes, como en el log o en el cliente de samp
|
Si te refieres al nombre del servidor debes poner el nombre en el gm:
pawn Код:
public OnGameModeInit()
{
SendRconCommand("hostname servidor en espaсol.");
}