Raised This Month: $ Target: $400
 0% 

Number to String


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 01-05-2008 , 10:23   Number to String
Reply With Quote #1

A month ago i quit scripting. But now i am back! XD. Still learning... Now i am making a cool plugin. Just need some help. I know this is kinda a newbie question. But i can't figure out this:

ok i made:
PHP Code:
new number1
new number2
new number3
new number4
new number5
new my_new_string[32
on round start:

PHP Code:
number1 random_num(1,9)
number2 random_num(1,9)
number3 random_num(1,9)
number4 random_num(1,9)
number5 random_num(1,9
And now i can't make those numbers all together in a string. Like:
if:
number1 = 1
number2 = 2
number3 = 3
...

so the string would to be: 12345
I hope you got the idea XD

I tried converting/making/transforming those numbers to string and then tried putting into the my_new_string... and other methods... nothing...

Maybe someone could make a code? I was searching the forums for tutorials, examples, other plugins... But i couldn't find anything. I know i am a bad searcher... XD. I'm stuck with this for 1h now...It shouldn't be a long script, so maybe someone could help me out?

Thanks.
shine771 is offline
 


Thread Tools
Display Modes

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 11:09.


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