Eroare sursa

Cereri de pluginuri noi, skinuri in CS, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
gaNNNja
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 156
Joined: 26 Jun 2014, 16:02
Detinator Steam: Da
CS Status: promns.ro
Detinator server CS: promns.ro
SteamID: Gollum_
Reputatie: Utilizator neserios (tepar)
Fond eXtream: 0
Location: Bucuresti
Has thanked: 2 times
Been thanked: 6 times
Contact:

25 Feb 2020, 10:28

Salut . Am si eu un plugin si am ceva eroare in consola.
| Afiseaza codul
02/23/2020 - 22:11:46: String formatted incorrectly - parameter 6 (total 5)

 02/23/2020 - 22:11:46: [AMXX] Displaying debug trace (plugin "zp_time_present.amxx")

 02/23/2020 - 22:11:46: [AMXX] Run time error 25: parameter error 

 02/23/2020 - 22:11:46: [AMXX] [0] textAr1Iox.sma::TimePresent (line 32)
Pluginul e acesta:
| Afiseaza codul
#include < amxmodx >
#include < amxmisc >

#define PLUGIN	"Time Present"
#define VERSION	"1.0"
#define AUTHOR	"LondoN eXtream"

native zp_get_user_ammo_packs ( Player );
native zp_set_user_ammo_packs ( Player, Packs );

new g_iCvarBonusPacks, g_iCvarTime;

public plugin_init ( )
{
	register_plugin ( PLUGIN, VERSION, AUTHOR );
	
	g_iCvarBonusPacks = register_cvar ( "time_present_bonus", "5" );
	g_iCvarTime = register_cvar ( "time_present_time", "10" );
}

public client_putinserver ( Player )
{
	if ( is_user_bot ( Player ) || is_user_hltv ( Player ) )
		return;

	set_task ( float ( get_pcvar_num ( g_iCvarTime ) ), "TimePresent", Player, _, _, "b" );
}

public TimePresent ( Player )
{
	zp_set_user_ammo_packs ( Player, zp_get_user_ammo_packs ( Player ) + get_pcvar_num ( g_iCvarBonusPacks ) );
	client_print ( Player, print_chat, "[Time Present] You recive %d ammo packs for playing %d minute%s", get_pcvar_num ( g_iCvarBonusPacks ), get_pcvar_num ( g_iCvarTime ) == 1 ? "" : "s" );
}

public client_disconnect ( Player )
{
	if ( !is_user_bot ( Player ) || !is_user_hltv ( Player ) )
		remove_task ( Player );

	return PLUGIN_CONTINUE;
}
Image
Image
eXtreamSHOP
User avatar
EnTeR_
Membru, skill +1
Membru, skill +1
Posts: 457
Joined: 13 Sep 2014, 15:36
Detinator Steam: Da
Fond eXtream: 0
Been thanked: 5 times

25 Feb 2020, 16:51

Code: Select all

client_print ( Player, print_chat, "[Time Present] You recive %d ammo packs for playing %d minute%s", get_pcvar_num ( g_iCvarBonusPacks ), get_pcvar_num ( g_iCvarTime ) == 1 ? "" : "s" );
-->

Code: Select all

client_print ( Player, print_chat, "[Time Present] You recive %d ammo packs for playing %d minute%s", get_pcvar_num ( g_iCvarBonusPacks ), get_pcvar_num ( g_iCvarTime ), get_pcvar_num ( g_iCvarTime ) == 1 ? "" : "s" );
Discord: EyeKon#3230
User avatar
gaNNNja
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 156
Joined: 26 Jun 2014, 16:02
Detinator Steam: Da
CS Status: promns.ro
Detinator server CS: promns.ro
SteamID: Gollum_
Reputatie: Utilizator neserios (tepar)
Fond eXtream: 0
Location: Bucuresti
Has thanked: 2 times
Been thanked: 6 times
Contact:

25 Feb 2020, 17:02

Mersi. Rezolvat cu warning-urile dar tot am o problema la el.

Aparent pluginul acorda fiecărui jucător ammo în continuu

Poza: https://i.imgur.com/HnS2VUy.jpg
Image
Image
User avatar
EnTeR_
Membru, skill +1
Membru, skill +1
Posts: 457
Joined: 13 Sep 2014, 15:36
Detinator Steam: Da
Fond eXtream: 0
Been thanked: 5 times

25 Feb 2020, 17:07

gaNNNja wrote:
25 Feb 2020, 17:02
Mersi. Rezolvat cu warning-urile dar tot am o problema la el.

Aparent pluginul acorda fiecărui jucător ammo în continuu

Poza: https://i.imgur.com/HnS2VUy.jpg
Pentru ca ai setat la 10 secunde. Vezi cvar "time_present_time"
Discord: EyeKon#3230
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests