Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2016-07-15, 13:26


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

Respekt: 651,8
Respekt: 651,8Respekt: 651,8

Lol. Przepraszam, ?e na Ciebie wyskoczy?em z pyskiem przyjacielu, ale zapomnia?em ?e SA-MP to najwi?kszy uj do dupu w historii wszech?wiata.

Kod:

#include <a_samp>

#define FILTERSCRIPT

public OnFilterScriptInit()
{
new _char[] = "???????棳?񌜏???";
printf("Przed: %s", _char);
deletePolish(_char);
printf("Po: %s", _char);
}

deletePolish(string[])
{
for(new x, j = strlen(string); x != j; x++)
{
#if defined FILTERSCRIPT

new bool:validated = true, switchValue = (j-1!=x) ? (string[x] | string[x + 1] << 8) : (string[x]);
switch(switchValue)
{
case 33988: string[x] = 0x41;
case 34244: string[x] = 0x61;

case 39108, 0x15c: string[x] = 0x45;
case 39364, 0x15d: string[x] = 0x65;

case 37827: string[x] = 0x4f;
case 46019, 0x176: string[x] = 0x6f;

case 34500: string[x] = 0x43;
case 34756: string[x] = 0x63;

case 33221: string[x] = 0x4c;
case 33477: string[x] = 0x6c;

case 33733: string[x] = 0x4e;
case 33989: string[x] = 0x6e;

case 39621: string[x] = 0x53;
case 39877: string[x] = 0x73;

case 47557, 48069: string[x] = 0x5a;
case 47813, 48325: string[x] = 0x7a;

default: { validated = false; }
}

if(validated)
{
j-=1;
for(new g=x;g!=j;g++)
string[g + 1] = string[g + 2];
string[j] = 0x0;
}

#else

switch(string[x])
{
case 165: string[x] = 0x41;
case 185: string[x] = 0x61;

case 202: string[x] = 0x45;
case 234: string[x] = 0x65;

case 211: string[x] = 0x4f;
case 243: string[x] = 0x6f;

case 198: string[x] = 0x43;
case 230: string[x] = 0x63;

case 163: string[x] = 0x4c;
case 179: string[x] = 0x6c;

case 209: string[x] = 0x4e;
case 241: string[x] = 0x6e;

case 140: string[x] = 0x53;
case 156: string[x] = 0x73;

case 143, 175: string[x] = 0x5a;
case 159, 191: string[x] = 0x7a;

default: { }
}

#endif
}
}


^ Obs?uguje filterscript'y i gamemode'y. Jak potrzebujesz optymalizacji to zapraszam pod GG.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-15, 14:51


misjane







Wiek: 29
Na forum: 5127 dni
Posty: 46



Respekt: 50

Super dzi?ki, wszystko dzia?a. Po :piwo: i rep+ dla was.

Postaw piwo autorowi tego posta
 

 
Tagi: zmiana :: polskich :: znaków
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » Zmiana polskich znaków Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku