Raised This Month: $ Target: $400
 0% 

Using "num_to_str" wrong


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 07-16-2011 , 15:00   Using "num_to_str" wrong
Reply With Quote #1

What am I doing wrong?

PHP Code:
    new random_number random_num1);
    
    new 
number_holder];
    
    
num_to_strrandom_numbernumber_holder);
    
    
engclient_cmdiPlayer"joinclass"random_number ); 
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-16-2011 , 15:03   Re: Using "num_to_str" wrong
Reply With Quote #2

Are you getting a compilation error or what is the problem exactly?
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
bibu
Veteran Member
Join Date: Sep 2010
Old 07-16-2011 , 15:07   Re: Using "num_to_str" wrong
Reply With Quote #3

Yes, still tag mismatch.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-16-2011 , 15:11   Re: Using "num_to_str" wrong
Reply With Quote #4

You have to use the string there.
__________________
fysiks is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-16-2011 , 15:41   Re: Using "num_to_str" wrong
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
You have to use the string there.
I am trying that.

@Arkshine:

I know, but the number needs to be as a string.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-16-2011 , 16:08   Re: Using "num_to_str" wrong
Reply With Quote #6

Quote:
Originally Posted by bibu View Post
@Arkshine:

I know, but the number needs to be as a string.
He's just saying that you use num_to_str() for a reason but you never use the string that you created with it.

EDIT: Typo, thanks Kreation.
__________________

Last edited by fysiks; 07-16-2011 at 16:13.
fysiks is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 07-16-2011 , 16:12   Re: Using "num_to_str" wrong
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
num_to_str()
__________________
Hi.
Kreation is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-16-2011 , 17:13   Re: Using "num_to_str" wrong
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
but you never use the string that you created with it.
Hmm, how to use it then?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-16-2011 , 15:13   Re: Using "num_to_str" wrong
Reply With Quote #9

Tip: purpose of num_to_str.
__________________
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-16-2011 , 17:48   Re: Using "num_to_str" wrong
Reply With Quote #10

Just

Thanks again.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Reply



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 00:46.


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