Raised This Month: $ Target: $400
 0% 

[ Solved ] with code that change 1 letter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 06-18-2014 , 06:39   [ Solved ] with code that change 1 letter
Reply With Quote #1

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
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