Skriptu koju koristim: moji gamemode od 0
Detaljan opis problema: Radim skriptu na kirilicu (Macedonian podrska) ali ja ih vidim, a drugi igraci ih vidu kao Hereoglifi, neznam koji charset koristim samp kao default pa kako da ga smenim ako nije utf-8 i sta bi trebao da igrac instalira ili neki font dodaje za da bi gledao kirilicu kako mene ?
Dio skripte: /
Slike: /
[pomoc] kako koristite utf-8 kao default charset
2,681
pregleda
24
postova
pre 14 godina
pre 14 godina
UTF 8 ti je standardni ASCII kod za dekodovanje karaktera ... koristi ovo
http://forum.sa-mp.com/showthread.php?t=223944
to ti je UTF 8 CODER i DECODER .. tako mozes da prevedes skriptu u razlicite jezike 😄
http://forum.sa-mp.com/showthread.php?t=223944
to ti je UTF 8 CODER i DECODER .. tako mozes da prevedes skriptu u razlicite jezike 😄
pre 14 godina
#InphiniteGamer wrote on May 17, 2011, 2:04 pm:
UTF 8 ti je standardni ASCII kod za dekodovanje karaktera ... koristi ovo
http://forum.sa-mp.com/showthread.php?t=223944
to ti je UTF 8 CODER i DECODER .. tako mozes da prevedes skriptu u razlicite jezike 😄
http://forum.sa-mp.com/showthread.php?t=223944
to ti je UTF 8 CODER i DECODER .. tako mozes da prevedes skriptu u razlicite jezike 😄
a dali bi morao da koristim sve coder jel ja kad ispisujem poruku ne koristim string nego direktno u sendclientmessage ? Jel ima neki drugi nacin ?
pre 14 godina
eXtreme wrote on May 17, 2011, 6:34 pm:
stock SendClientMessageUTF8(playerid, color, text[])
{
new str;
UTF8_Decode(text[], str, sizeof(str));
SendClientMessage(playerid, color, str);
return true;
}
{
new str;
UTF8_Decode(text[], str, sizeof(str));
SendClientMessage(playerid, color, str);
return true;
}
aha, znaci bi mogao ja da koristim
SendCleintMessageUTF8(playerid, BOJA, " Test poruka");
a kako bi koristio UTF8 u dialogu ?
EDIT: A dali bi mogao da koristim na pr:
for(i=1; i++; i
sendclientmessageutf8(i,COLOR_RED," TEST PORUKA ");
}
pre 14 godina
stock ShowPlayerDialogUTF8(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
new str;
UTF8_Decode(text[], str, sizeof(str));
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
return true;
} i ako treba ici onaj str dodaj
{
new str;
UTF8_Decode(text[], str, sizeof(str));
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
return true;
} i ako treba ici onaj str dodaj
pre 14 godina
Quote from May 17, 2011, 6:54 pm:
stock ShowPlayerDialogUTF8(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
new str;
UTF8_Decode(text[], str, sizeof(str));
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
return true;
} i ako treba ici onaj str dodaj
{
new str;
UTF8_Decode(text[], str, sizeof(str));
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
return true;
} i ako treba ici onaj str dodaj
Ovo neće raditi
pre 14 godina
Quote from May 17, 2011, 6:54 pm:
stock ShowPlayerDialogUTF8(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
new str;
UTF8_Decode(text[], str, sizeof(str));
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
return true;
} i ako treba ici onaj str dodaj
{
new str;
UTF8_Decode(text[], str, sizeof(str));
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);
return true;
} i ako treba ici onaj str dodaj
Ovo neće raditi
dobro ja sam samo iso logicki 😄 napravi ti
pre 14 godina
stock ShowPlayerDialogUTF8(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
new
str
str1,
str2,
str3;
UTF8_Decode(info, str, sizeof(str));
UTF8_Decode(caption, str1, sizeof(str1));
UTF8_Decode(button1, str2, sizeof(str2));
UTF8_Decode(button2, str3, sizeof(str3));
ShowPlayerDialog(playerid, dialogid, style, str1, str, str2, str3);
return true;
}
{
new
str
str1,
str2,
str3;
UTF8_Decode(info, str, sizeof(str));
UTF8_Decode(caption, str1, sizeof(str1));
UTF8_Decode(button1, str2, sizeof(str2));
UTF8_Decode(button2, str3, sizeof(str3));
ShowPlayerDialog(playerid, dialogid, style, str1, str, str2, str3);
return true;
}
pre 14 godina
eXtreme wrote on May 17, 2011, 6:57 pm:
stock ShowPlayerDialogUTF8(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
new str;
UTF8_Decode(info[], str, sizeof(str));
ShowPlayerDialog(playerid, dialogid, style, caption[], str, button1[], button2[]);
return true;
}
{
new str;
UTF8_Decode(info[], str, sizeof(str));
ShowPlayerDialog(playerid, dialogid, style, caption[], str, button1[], button2[]);
return true;
}
ovo radi ?
pre 14 godina
ShowPlayerDialogUTF8(id, dialogid, style, caption[], info[], button1[], button2[])
{
new
string;
UTF8_Decode(info, string, sizeof string);
UTF8_Decode(caption, string, sizeof string);
UTF8_Decode(button1, string, sizeof string);
UTF8_Decode(button2, string, sizeof string);
ShowPlayerDialog(id, dialogid, style, string, string, string, string);
return true;
}
{
new
string;
UTF8_Decode(info, string, sizeof string);
UTF8_Decode(caption, string, sizeof string);
UTF8_Decode(button1, string, sizeof string);
UTF8_Decode(button2, string, sizeof string);
ShowPlayerDialog(id, dialogid, style, string, string, string, string);
return true;
}
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava