12.04.2014, 11:23
That could be done by replacing the characters and by running the string on a loop. A small example:
Now salting them would be like:
To ease this, you could create defines and then implement them to create an easier function. And if you're looking for INI readings, I suggest you to load them up and store them on an array.
Though, I stick with what Vince has told. This was just an answer to your question in regarding if it's possible to.
pawn Код:
new
string[] = "I'm Lordz!";
for(new i; i< strlen(string); i++)
{
switch(string[i])
{
case 'A' : string[i] = 'i';
case 'B' : string[i] = 'c';
case 'C' : string[i] = 'z';
case 'D' : string[i] = 'Y';
case 'E' : string[i] = 'L';
//And so...
case 'Z' : string[i] = 'x';
//...
case 'a' : string[i] = 'G';
case 'z' : string[i] = 'O';
}
}
pawn Код:
for(new i; i< strlen(string); i++)
{
switch(string[i])
{
case 'i' : string[i] = 'A';
case 'c' : string[i] = 'B';
case 'z' : string[i] = 'C';
case 'Y' : string[i] = 'D';
case 'G' : string[i] = 'a';
}
}
Though, I stick with what Vince has told. This was just an answer to your question in regarding if it's possible to.