Raised This Month: $ Target: $400
 0% 

P1mps Plugin Error Help 2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 07-12-2013 , 07:16   P1mps Plugin Error Help 2
Reply With Quote #1

L 07/12/2013 - 14:23:01: [AMXX] Displaying debug trace (plugin "pimpspugfast.amxx")
L 07/12/2013 - 14:23:01: [AMXX] Run time error 25: parameter error
L 07/12/2013 - 14:23:01: [AMXX] [0] pimpspugfast.sma::TeamsVote2 (line 274
L 07/12/2013 - 14:23:01: String formatted incorrectly - parameter 5 (total 5)

Dictionary file has the content ..

TEAMS_VOTE_DELAY = Teams organization vote will be delayed in another 15 seconds since everyone hasn't joined in yet.

heres the code.. Error marked as comment

PHP Code:
public TeamsVote2() {     
    if ( !
g_CustomGame ) {
        if (
get_playersnum() < get_pcvar_num(cvar_pLeft) - 2) {
            if (
g_DidWaitEnough == 16) {
                
client_print(0print_chat"%s %L"PREFIXLANG_PLAYER"PLAYERS_NOT_JOINING")
                
set_pug_state(0)
                
g_IsStarted false
                g_AfterRdy 
false
                
new taskId scanForTaskID()
                
set_task(3.0"MatchIsOver"taskId)
                return 
PLUGIN_HANDLED
            
}
            
            new 
sum
            sum 
g_DidWaitEnough 15
            sum 
300 sum
            client_print
(0print_chat"%s %L"PREFIX"TEAMS_VOTE_DELAY")  //<-- Error Shown Here.
            
set_hudmessage(255000.350.6606.012.0)
            
ShowSyncHudMsg(0g_MsgSync6"%L"LANG_PLAYER"TEAMS_VOTE_DELAY_HUD"sum)
            
g_DidWaitEnough++
            new 
taskId scanForTaskID()
            
set_task(15.0"TeamsVote2"taskId)
            return 
PLUGIN_HANDLED
        
}
            
    }
    
client_cmd(0"spk Gman/Gman_Choose1")
    new 
taskId scanForTaskID()
    
set_task(10.0"EndTeamsVote"taskId)
    return 
PLUGIN_HANDLED


Last edited by devilicioux; 07-12-2013 at 07:18. Reason: clarification
devilicioux is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-12-2013 , 07:28   Re: P1mps Plugin Error Help 2
Reply With Quote #2

Add LANG_PLAYER, after PREFIX.
__________________
Arkshine is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 07-13-2013 , 10:43   Re: P1mps Plugin Error Help 2
Reply With Quote #3

Tysm Arkshine

Quote:
Originally Posted by Arkshine View Post
Add LANG_PLAYER, after PREFIX.
devilicioux 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 06:23.


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