10.02.2011, 02:16
Shadow-: That will cause an infinite loop becuase 'str1' would go from length to 0 to -1 to -2 and so on, of course, the script would crash before it even hit -2.
Correct:
Correct:
pawn Code:
stock GiveNameSpace(nstring[])
{
new strl;
strl=strlen(nstring)-1;
while(strl >= 0)
{
if(nstring[strl]=='_')
nstring[strl]=' ';
str1--;
}
return nstring;
}