Raised This Month: $ Target: $400
 0% 

'String formatted incorrectly' [SOLVED!]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 09-06-2008 , 06:24   Re: 'String formatted incorrectly'
Reply With Quote #2

Example of a string formatted incorrectly:
PHP Code:
formatex("lolzor: %s (1) || %s (2) || %s (3)""Hello""Cool"); 
As you can see, there's 3 '%s' but only 2 Strings to fetch.

You used '%d' twice but only 1 variable to fetch
PHP Code:
len += format(motd[len], MAX_BUFFER_LENGTH-len,"<left><font color=^"red^"><B>Deaths</B> - <font color=^"white^">%d/%d</color></left>^n",stats[1]) 
__________________
atomen is offline
Send a message via MSN to atomen
 



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 03:01.


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