well this is the whole code and when its doing the function
Code:
public athegame( client )
{
WordNumber = random( sizeof( words_count ) )
formatex(TheWord,charsmax(TheWord),"%s", games_words[ WordNumber ] )
Reworkword()
ColorChat( 0, "%s", TheWord )
}
Code:
stock Reworkword( )
{
new Num = random(sizeof(Chars));
while( !(containi( TheWord , Chars[ Num ] ) ) )
{
Num = random(sizeof(Chars));
}
replace( TheWord , charsmax(TheWord) , Chars[ Num ] , "_" )
}
and words are taken from file and the file works fine the function that should replace random letter in _ dont work cause its just type the normal word