so i made this code
Code:
{
new Rletter[ 1 ];
formatex( Rletter, charsmax(Rletter),"%s" , Chars[ random( sizeof( Chars ) ) ] )
while( !(containi( TheWord , Rletter ) ) )
{
formatex( Rletter, charsmax(Rletter),"%s" , Chars[ random( sizeof( Chars ) ) ] )
}
replace( TheWord , charsmax(TheWord) , Rletter , "_" )
}
and it dosent work i need to first check if the letter is in the word and then change the letter by _ but its seems to not work and debug say its in the replace function tho i think i did it bad