AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   P1mps Plugin Error Help 2 (https://forums.alliedmods.net/showthread.php?t=220587)

devilicioux 07-12-2013 07:16

P1mps Plugin Error Help 2
 
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 2748)
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



Arkshine 07-12-2013 07:28

Re: P1mps Plugin Error Help 2
 
Add LANG_PLAYER, after PREFIX.

devilicioux 07-13-2013 10:43

Re: P1mps Plugin Error Help 2
 
Tysm Arkshine :)

Quote:

Originally Posted by Arkshine (Post 1989262)
Add LANG_PLAYER, after PREFIX.



All times are GMT -4. The time now is 06:23.

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