String formatted incorrectly - parameter 5 (total 4)

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

String formatted incorrectly - parameter 5 (total 4)

Post by laimiukas3 »

nk nesuprantu ar tai del %s %d %s
L 12/28/2019 - 11:12:44: Info (map "de_dust2x2") (file "addons/amxmodx/logs/error_20191228.log")
L 12/28/2019 - 11:12:44: String formatted incorrectly - parameter 5 (total 4)
L 12/28/2019 - 11:12:44: [AMXX] Displaying debug trace (plugin "pluginas.amxx", version "0.3")
L 12/28/2019 - 11:12:44: [AMXX] Run time error 25: parameter error
L 12/28/2019 - 11:12:44: [AMXX] [0] fb_fowards.sma::show (line 42)

Kodas: Select all

#include <amxmodx>#include <amxmisc> forward fbans_player_banned_pre&#40;id, userid&#41;forward amxbans_player_banned&#40;id, bid&#41;forward fbans_player_banned_post&#40;id, userid, bid&#41; public fbans_player_banned_pre&#40;id, userid&#41;&#123;    server_cmd&#40;"amx_screen #%d 3", userid&#41;&#125; public amxbans_player_banned&#40;id, bid&#41;&#123;        static data&#91;1&#93;    data&#91;0&#93; = bid    set_task&#40;3.0, "show", id, data, 1&#41; // &#125; public fbans_player_banned_post&#40;id, userid, bid&#41;&#123;    // &#125; public show&#40;data&#91;&#93;, id&#41;&#123;    if&#40;is_user_connected&#40;id&#41;&#41;    &#123;        static url&#91;128&#93;        formatex&#40;url, 127, "http://amxmodx.lt/ban/motd.php?sid=%s&adm=%d&lang=%s", data&#91;0&#93;&#41; /// (line 42)        show_motd&#40; id, url, "You are banned"&#41;    &#125;&#125; public client_disconnected&#40;id&#41; remove_task&#40;id&#41;
-- 2019 Gru 29 03:21 --

formatex(url, 127, "http://amxmodx.lt/ban/motd.php?sid=%d&adm=0&lang=ru", data[0]) :facepalms:
Image
Image
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests