09.08.2010, 16:59
Quote:
Hiddos nice one but here an easier and faster version:
pawn Код:
|
Or if there are more than 1 underline in the name?
Hiddos' code is fine, except that he's using a function which loops through the string in a loop, so the script might loop through the string many times when only 1 loop would be enough:
pawn Код:
func(name[])
{
new i;
while(name[i])
{
if(name[i] == '_') name[i] = ' ';
i++;
}
return 1;
}