Raised This Month: $ Target: $400
 0% 

Arrays not working for some odd reason


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
VEN
Veteran Member
Join Date: Jan 2005
Old 03-20-2006 , 20:48  
Reply With Quote #2

You printing a string.

But as you said
Quote:
It SHOULD print out: Array: xxx.xx
I.e. you want to print numbers and char, so do that:
Code:
client_print(id,print_chat,"Array: %d%d%c%d%d", arrayTest[0],arrayTest[1],arrayTest[2],arrayTest[3],arrayTest[4]);

Your mistake is that you thought that number == 'number'
But in fact, for example 7 != '7'.
VEN 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 16:37.


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