Raised This Month: $ Target: $400
 0% 

'String formatted incorrectly' [SOLVED!]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 09-06-2008 , 05:56   'String formatted incorrectly' [SOLVED!]
Reply With Quote #1

Hi.
I'm getting this error when i'm using a command:
Quote:
L 09/06/2008 - 12:50:56: String formatted incorrectly - parameter 5 (total 4)
L 09/06/2008 - 12:50:56: [AMXX] Run time error 25 (plugin "war.amxx") - debug not enabled!
Code:
PHP Code:
public skillme_cmd(id)
{
    new 
motd[MAX_BUFFER_LENGTH],len,stats[8],body[8],stats2[4];
    new 
rank_pos get_user_stats(id,stats,body);
    new 
rank_max get_statsnum();
    
len format(motdMAX_BUFFER_LENGTH,"<body bgcolor=#000000><font color=#87cefa><pre>")
    
len += format(motd[len], MAX_BUFFER_LENGTH-len,"<center><h4><font color=^"blue^"> Player Stats </font></h4></center>");
    
len += format(motd[len], MAX_BUFFER_LENGTH-len,"<left><font color=^"red^"><B>Rank</B> - <font color=^"white^">%d/%d</color></left>^n",rank_pos,rank_max);
    
len += format(motd[len], MAX_BUFFER_LENGTH-len,"<left><font color=^"red^"><B>Kills</B> - <font color=^"white^">%d</color></left>^n",stats[0]);
    
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])
    
len += format(motd[len], MAX_BUFFER_LENGTH-len,"<left><font color=^"red^"><B>Bombs Planted</B> - <font color=^"white^">%d</color></left>^n",stats2[2]);
    
len += format(motd[len], MAX_BUFFER_LENGTH-len,"<left><font color=^"red^"><B>Bombs Exploded</B> - <font color=^"white^">%d</color></left>^n",stats2[3]);
    
len += format(motd[len], MAX_BUFFER_LENGTH-len,"<left><font color=^"red^"><B>Bombs Defused</B> - <font color=^"white^">%d</color></left>^n",stats2[1]);
    
show_motd(idmotd"SkillMe");
    return 
PLUGIN_CONTINUE;

__________________


Last edited by anakin_cstrike; 10-15-2008 at 14:30.
anakin_cstrike 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 03:01.


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