26.11.2012, 16:51
Quote:
Muita coisa no cуdigo poderia ser melhorado, mas ficou legalzinho.
|
pawn Code:
for(new lin=0;lin<strlen(chaty);lin++){
if(chaty[lin]=='~')chaty[lin]='#';else if(chaty[lin]=='б')chaty[lin]='a';
else if(chaty[lin]=='в')chaty[lin]='a';else if(chaty[lin]=='г')chaty[lin]='a';
else if(chaty[lin]=='й')chaty[lin]='e';else if(chaty[lin]=='к')chaty[lin]='e';
else if(chaty[lin]=='и')chaty[lin]='e';else if(chaty[lin]=='н')chaty[lin]='i';
else if(chaty[lin]=='м')chaty[lin]='i';else if(chaty[lin]=='о')chaty[lin]='i';
else if(chaty[lin]=='у')chaty[lin]='¦';else if(chaty[lin]=='ф')chaty[lin]='o';
else if(chaty[lin]=='х')chaty[lin]='o';else if(chaty[lin]=='т')chaty[lin]='o';
else if(chaty[lin]=='ъ')chaty[lin]='Є';else if(chaty[lin]=='щ')chaty[lin]='©';
else if(chaty[lin]=='ы')chaty[lin]='«';else if(chaty[lin]=='є')chaty[lin]='|';
else if(chaty[lin]=='Є')chaty[lin]='|';
else if(chaty[lin]=='с')chaty[lin]='n';else if(chaty[lin]=='э')chaty[lin]='y';
else if(chaty[lin]=='з')chaty[lin]='c';else if(chaty[lin]=='^')chaty[lin]=':';}