Raised This Month: $ Target: $400
 0% 

[ Solved ] with code that change 1 letter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
daniel46
Senior Member
Join Date: Dec 2011
Old 06-18-2014 , 07:41   Re: Help with code that change 1 letter
Reply With Quote #9

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
daniel46 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode