hlmod.hu https://hlmod.hu/ |
|
VIP plugin problema https://hlmod.hu/viewtopic.php?f=9&t=31554 |
Oldal: 1 / 1 |
Szerző: | kecskebeka12 [ 2024.02.21. 08:29 ] | ||
Hozzászólás témája: | VIP plugin problema | ||
Sziasztok Valaki nem tudna segiteni hogy hogyan oldjam meg ezt a problemat? amikor be irom,hogy /vips ezt a hibat adja elo L 02/21/2024 - 08:21:40: String formatted incorrectly - parameter 4 (total 3) L 02/21/2024 - 08:21:40: [AMXX] Displaying debug trace (plugin "ElemenTVIP.amxx", version "2.0") L 02/21/2024 - 08:21:40: [AMXX] Run time error 25: parameter error L 02/21/2024 - 08:21:40: [AMXX] [0] phpUWC9pN.sma::ShowVIPs (line 864) public ShowVIPs( id ) { if(!is_user_connected( id ) ) return PLUGIN_HANDLED; new vip_name[33]; new message[190]; new contor, len; if( is_user_vip( id ) ) { get_user_name( id, vip_name[ contor++ ], charsmax( vip_name ) ); } len = format( message, charsmax( message ), "!g%s !yVIP's Online!team: " ); ezt a sort adja problemanak if( contor > 0 ) { for( new i = 0 ; i < contor ; i++) { len += format( message[ len ], charsmax( message ) - len, "!y%s%s ", vip_name[ i ], i < ( contor - 1 ) ? ", " : ""); if(len > 96 ) { color_chat( id, message ); len = format( message, charsmax( message ), "%s "); } } color_chat( id, message); } else { len += format( message[ len ], charsmax( message ) - len, "Nincs VIP online."); color_chat( id, message ); } return PLUGIN_CONTINUE; }
|
Szerző: | The Peace [ 2024.02.22. 13:37 ] |
Hozzászólás témája: | Re: VIP plugin problema |
Rég foglalkoztam pawn-al de teszteld:
Javitottam a`get_user_name` hívását és a `format` függvény használatát is. |
Szerző: | kecskebeka12 [ 2024.02.24. 19:51 ] |
Hozzászólás témája: | Re: VIP plugin problema |
Udv. Sajnos nem mukodik,mostmar leforditja de csak engem mutat az online VIP-ek kozott ha be irom a /vips parancsot |
Szerző: | DexoN [ 2024.02.25. 14:47 ] |
Hozzászólás témája: | Re: VIP plugin problema |
Logikailag ez a rész teljesen hülyeség, mivel sosem lesz több mint 1 a "contor" változód, így mindig csak 1 játékost fog kiírni.
írd át erre:
|
Oldal: 1 / 1 | Minden időpont UTC+02:00 időzóna szerinti |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |