Errori compilare plugin ss

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Doctor whO? <3
Membru, skill +2
Membru, skill +2
Posts: 794
Joined: 21 Jun 2013, 11:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 90 times
Been thanked: 12 times
Contact:

28 Nov 2019, 00:47

Am un plugin de SS si primesc niste errori la compilare...
SS | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>

#define PLUGIN "ESPORTS Signed Screenshot"
#define VERSION "1.0"
#define AUTHOR "ThE_ChOSeN_OnE"

new _screen_hp[33]

public plugin_init(){
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_concmd("amx_ss","cmdScreen",ADMIN_KICK,"<nick or #userid> - Advanced screenshot with protection against Anti-SS")
}
public cmdScreen(id,level,cid){
	if(!cmd_access(id,level,cid,2)){
		return PLUGIN_HANDLED
	}
	new arg1[32],target,task[2],timestamp[32],name[32],name2[32],ip[32],str_host[32]
	read_argv(1,arg1,31)
	target = cmd_target(id,arg1,CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)
	if(!target) return PLUGIN_HANDLED
	if(task_exists(target+333131) || task_exists(target+333132)){
		client_print(id,print_console,"[ESPORTS] %s is already being screenshoted",name2)
		return PLUGIN_HANDLED
	}
	get_time("%m/%d/%Y - %H:%M:%S",timestamp,31)
	get_user_name(id,name,31)
	get_user_name(target,name2,31)
	get_user_ip(target,ip,31,1)
	//format_for_steam(id,name)
	get_cvar_string("hostname",str_host,31)
	task[0] = target
	task[1] = id
	set_pev(target,pev_takedamage,DAMAGE_NO)
	_screen_hp[target] = pev(target,pev_health)
	set_pev(target, pev_health, 255.0)
	client_print(id,print_console,"[ESPORTS] ESPORTS Screenshot -> Nickname '%s' | IP '%s'",name2,ip)
	color_print(0,0,"!team[ESPORTS] !ySigned screenshot taken on player !team%s !yby Admin !team%s",name2,name)
	color_print(0,target,"!teamServer: !g%s",str_host)
	color_print(0,target,"!teamName: !g%s !y- !teamIP: !g%s",name2,ip)
	color_print(0,target,"!yA signed screenshot has been executed on you by Admin !team%s",name)
	color_print(0,target,"!teamForum: !gwww.website.ro/forum/")
	color_print(0,target,"!team[%s]",timestamp)
	client_print(target,print_console,"|____ ESPORTS Screenshot ____|")
	client_print(target,print_console,"Server: %s",str_host)
	client_print(target,print_console,"Name: %s - IP: %s",name2,ip)
	client_print(target,print_console,"A signed screenshot has been executed on you by Admin %s",name)
	client_print(target,print_console,"Post the screenshot on our forums or send it to %s",name)
	client_print(target,print_console,"Forum: http://www.website.ro/forum/"&#41;
	client_cmd(target,"stop")
	set_task(0.1,"screen_sign",target+333131,task,2)
	set_task(1.0,"screen_sign_remove",target+333132,task,1)
	log_amx("[ESPORTS_snapshot] Signed screenshot taken on player %s by Admin %s",name2,name)
	return PLUGIN_HANDLED
}
public screen_sign(task[2]){
	new target,admin
	target = task[0]; admin = task[1]
	if(!is_user_connected(target) || !is_user_connected(admin)){
		return PLUGIN_HANDLED
	}
	client_cmd(target,"toggleconsole;snapshot;toggleconsole;wait;wait")
	return PLUGIN_CONTINUE
}
public screen_sign_remove(task[1]){
	new target
	target = task[0]
	if(!is_user_connected(target)){
		return PLUGIN_HANDLED
	}
	set_pev(target,pev_health,float(_screen_hp[target]))
	set_pev(target,pev_takedamage,DAMAGE_AIM)   
	color_print(0,target,"!team_ End of Screenshot _")
	
	user_kill( target, 1 );
	cs_set_user_team(  target,  CS_TEAM_SPECTATOR  );
	
	return PLUGIN_CONTINUE
}

stock color_print(admin=0,const id,const input[],any:...){
	new count = 1,players[32]
	new msg[191]
	vformat(msg,190,input,4)
	replace_all(msg,190,"!g","^4")
	replace_all(msg,190,"!y","^1")
	replace_all(msg,190,"!team","^3")
	if(id) players[0] = id; else get_players(players,count,"ch");{
		for(new i=0; i < count; i++){
			if(is_user_connected(players)){
				if(admin==1 && !is_user_admin(players))
					continue;
				message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("SayText"),_,players) 
				write_byte(players)
				write_string(msg)
				message_end()
			}
		}
	}
}
Errori compilare:

Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/tmp/textLnmyw2.sma(51) : error 029: invalid expression, assumed zero
/tmp/textLnmyw2.sma(51) : warning 215: expression has no effect
/tmp/textLnmyw2.sma(92) : error 035: argument type mismatch (argument 1)
/tmp/textLnmyw2.sma(93) : error 035: argument type mismatch (argument 1)
/tmp/textLnmyw2.sma(95) : error 035: argument type mismatch (argument 4)
/tmp/textLnmyw2.sma(96) : error 035: argument type mismatch (argument 1)

5 Errors.
eXtreamSHOP
User avatar
Manutza*
Membru, skill 0
Membru, skill 0
Posts: 54
Joined: 10 Nov 2018, 11:47
Detinator Steam: Nu
CS Status: RS6 Showtime tati
Fond eXtream: 0
Been thanked: 2 times
Contact:

28 Nov 2019, 16:19

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>

#define PLUGIN "ESPORTS Signed Screenshot"
#define VERSION "1.0"
#define AUTHOR "ThE_ChOSeN_OnE"

new _screen_hp[33]

public plugin_init(){
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_concmd("amx_ss","cmdScreen",ADMIN_KICK,"<nick or #userid> - Advanced screenshot with protection against Anti-SS")
}
public cmdScreen(id,level,cid){
	if(!cmd_access(id,level,cid,2)){
		return PLUGIN_HANDLED
	}
	new arg1[32],target,task[2],timestamp[32],name[32],name2[32],ip[32],str_host[32]
	read_argv(1,arg1,31)
	target = cmd_target(id,arg1,CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)
	if(!target) return PLUGIN_HANDLED
	if(task_exists(target+333131) || task_exists(target+333132)){
		client_print(id,print_console,"[ESPORTS] %s is already being screenshoted",name2)
		return PLUGIN_HANDLED
	}
	get_time("%m/%d/%Y - %H:%M:%S",timestamp,31)
	get_user_name(id,name,31)
	get_user_name(target,name2,31)
	get_user_ip(target,ip,31,1)
	//format_for_steam(id,name)
	get_cvar_string("hostname",str_host,31)
	task[0] = target
	task[1] = id
	set_pev(target,pev_takedamage,DAMAGE_NO)
	_screen_hp[target] = pev(target,pev_health)
	set_pev(target, pev_health, 255.0)
	client_print(id,print_console,"[ESPORTS] ESPORTS Screenshot -> Nickname '%s' | IP '%s'",name2,ip)
	color_print(0,"!t[ESPORTS] !nSigned screenshot taken on player !t%s !nby Admin !t%s",name2,name)
	color_print(0,"!tServer: !g%s",str_host)
	color_print(0,"!tName: !g%s !n- !tIP: !g%s",name2,ip)
	color_print(0,"!nA signed screenshot has been executed on you by Admin !t%s",name)
	color_print(0,"!tForum: !gwww.website.ro/forum/")
	color_print(0,"!t[%s]",timestamp)
	client_print(target,print_console,"|____ ESPORTS Screenshot ____|")
	client_print(target,print_console,"Server: %s",str_host)
	client_print(target,print_console,"Name: %s - IP: %s",name2,ip)
	client_print(target,print_console,"A signed screenshot has been executed on you by Admin %s",name)
	client_print(target,print_console,"Post the screenshot on our forums or send it to %s",name)
	client_print(target,print_console,"Forum: http://www.website.ro/forum/");
	client_cmd(target,"stop")
	set_task(0.1,"screen_sign",target+333131,task,2)
	set_task(1.0,"screen_sign_remove",target+333132,task,1)
	log_amx("[ESPORTS_snapshot] Signed screenshot taken on player %s by Admin %s",name2,name)
	return PLUGIN_HANDLED
}
public screen_sign(task[2]){
	new target,admin
	target = task[0]; admin = task[1]
	if(!is_user_connected(target) || !is_user_connected(admin)){
		return PLUGIN_HANDLED
	}
	client_cmd(target,"toggleconsole;snapshot;toggleconsole;wait;wait")
	return PLUGIN_CONTINUE
}
public screen_sign_remove(task[1]){
	new target
	target = task[0]
	if(!is_user_connected(target)){
		return PLUGIN_HANDLED
	}
	set_pev(target,pev_health,float(_screen_hp[target]))
	set_pev(target,pev_takedamage,DAMAGE_AIM)   
	color_print(target, "!team_ End of Screenshot _")
	
	user_kill( target, 1 );
	cs_set_user_team(  target,  CS_TEAM_SPECTATOR  );
	
	return PLUGIN_CONTINUE
}


stock color_print(const id, const input[], any:...) {         //Pentru a face mesajul colorat
    new count = 1, players[32]; 
    static msg[191]; 
    vformat(msg, 190, input, 3); 
     
    replace_all(msg, 190, "!g", "^4"); // Green Color 
    replace_all(msg, 190, "!n", "^1"); // Default Color 
    replace_all(msg, 190, "!t", "^3"); // Team Color 
    replace_all(msg, 190, "!t2", "^0"); // Team2 Color 
     
    if (id) players[0] = id; else get_players(players, count, "ch"); { 
        for (new i = 0; i < count; i++) { 
            if (is_user_connected(players)) { 
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players); 
                write_byte(players); 
                write_string(msg); 
                message_end(); 
            } 
        } 
    } 
}  
  
Last edited by Manutza* on 28 Nov 2019, 21:28, edited 1 time in total.
phpBB [media]
User avatar
Doctor whO? <3
Membru, skill +2
Membru, skill +2
Posts: 794
Joined: 21 Jun 2013, 11:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 90 times
Been thanked: 12 times
Contact:

28 Nov 2019, 17:17

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/tmp/textStJnq3.sma(96) : error 035: argument type mismatch (argument 1)
/tmp/textStJnq3.sma(97) : error 035: argument type mismatch (argument 4)
/tmp/textStJnq3.sma(98) : error 035: argument type mismatch (argument 1)
User avatar
1TAP GOD
Membru, skill 0
Membru, skill 0
Posts: 79
Joined: 02 Sep 2018, 23:20
Detinator Steam: Da
CS Status: Be The Best And Fuck The Rest
SteamID: assasinssmdfk
Fond eXtream: 0
Been thanked: 1 time
Contact:

28 Nov 2019, 17:51

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>

#define PLUGIN "ESPORTS Signed Screenshot"
#define VERSION "1.0"
#define AUTHOR "ThE_ChOSeN_OnE"

new _screen_hp[33]

public plugin_init(){
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_concmd("amx_ss","cmdScreen",ADMIN_KICK,"<nick or #userid> - Advanced screenshot with protection against Anti-SS")
}
public cmdScreen(id,level,cid){
	if(!cmd_access(id,level,cid,2)){
		return PLUGIN_HANDLED
	}
	new arg1[32],target,task[2],timestamp[32],name[32],name2[32],ip[32],str_host[32]
	read_argv(1,arg1,31)
	target = cmd_target(id,arg1,CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)
	if(!target) return PLUGIN_HANDLED
	if(task_exists(target+333131) || task_exists(target+333132)){
		client_print(id,print_console,"[ESPORTS] %s is already being screenshoted",name2)
		return PLUGIN_HANDLED
	}
	get_time("%m/%d/%Y - %H:%M:%S",timestamp,31)
	get_user_name(id,name,31)
	get_user_name(target,name2,31)
	get_user_ip(target,ip,31,1)
	//format_for_steam(id,name)
	get_cvar_string("hostname",str_host,31)
	task[0] = target
	task[1] = id
	set_pev(target,pev_takedamage,DAMAGE_NO)
	_screen_hp[target] = pev(target,pev_health)
	set_pev(target, pev_health, 255.0)
	client_print(id,print_console,"[ESPORTS] ESPORTS Screenshot -> Nickname '%s' | IP '%s'",name2,ip)
	print_cc(0,".t[ESPORTS] .nSigned screenshot taken on player .t%s .nby Admin .t%s",name2,name)
	print_cc(0,".tServer: .g%s",str_host)
	print_cc(0,".tName: .g%s .n- .tIP: .g%s",name2,ip)
	print_cc(0,".nA signed screenshot has been executed on you by Admin .t%s",name)
	print_cc(0,".tForum: .gwww.website.ro/forum/")
	print_cc(0,".t[%s]",timestamp)
	client_print(target,print_console,"|____ ESPORTS Screenshot ____|")
	client_print(target,print_console,"Server: %s",str_host)
	client_print(target,print_console,"Name: %s - IP: %s",name2,ip)
	client_print(target,print_console,"A signed screenshot has been executed on you by Admin %s",name)
	client_print(target,print_console,"Post the screenshot on our forums or send it to %s",name)
	client_print(target,print_console,"Forum: http://www.website.ro/forum/");
	client_cmd(target,"stop")
	set_task(0.1,"screen_sign",target+333131,task,2)
	set_task(1.0,"screen_sign_remove",target+333132,task,1)
	log_amx("[ESPORTS_snapshot] Signed screenshot taken on player %s by Admin %s",name2,name)
	return PLUGIN_HANDLED
}
public screen_sign(task[2]){
	new target,admin
	target = task[0]; admin = task[1]
	if(!is_user_connected(target) || !is_user_connected(admin)){
		return PLUGIN_HANDLED
	}
	client_cmd(target,"toggleconsole;snapshot;toggleconsole;wait;wait")
	return PLUGIN_CONTINUE
}
public screen_sign_remove(task[1]){
	new target
	target = task[0]
	if(!is_user_connected(target)){
		return PLUGIN_HANDLED
	}
	set_pev(target,pev_health,float(_screen_hp[target]))
	set_pev(target,pev_takedamage,DAMAGE_AIM)   
	print_cc(target, ".team_ End of Screenshot _")
	
	user_kill( target, 1 );
	cs_set_user_team(  target,  CS_TEAM_SPECTATOR  );
	
	return PLUGIN_CONTINUE
}


print_cc(id, fmt[], any:...)
{
	static saytext = 0, fake_user;
	if (!saytext)
	{
		saytext = get_user_msgid("SayText");
		fake_user = get_maxplayers() + 1;
	}
	new msg[192];
	vformat(msg, charsmax(msg), fmt, 3)
	replace_all(msg, sizeof(msg) - 1, ".g", "^x04");
	replace_all(msg, sizeof(msg) - 1, ".n", "^x01");
	replace_all(msg, sizeof(msg) - 1, ".t", "^x03");
	message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, saytext, _, id);
	write_byte(id ? id : fake_user);
	write_string(msg);
	message_end();
}
Daca vreti ceva da-ti add aici https://steamcommunity.com/id/assasinssmdfk/
User avatar
Doctor whO? <3
Membru, skill +2
Membru, skill +2
Posts: 794
Joined: 21 Jun 2013, 11:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 90 times
Been thanked: 12 times
Contact:

28 Nov 2019, 17:53

Acum merge compilat, multumesc.
Se poate da T.C
User avatar
Manutza*
Membru, skill 0
Membru, skill 0
Posts: 54
Joined: 10 Nov 2018, 11:47
Detinator Steam: Nu
CS Status: RS6 Showtime tati
Fond eXtream: 0
Been thanked: 2 times
Contact:

28 Nov 2019, 21:28

Manutza* wrote:
28 Nov 2019, 16:19
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>

#define PLUGIN "ESPORTS Signed Screenshot"
#define VERSION "1.0"
#define AUTHOR "ThE_ChOSeN_OnE"

new _screen_hp[33]

public plugin_init(){
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_concmd("amx_ss","cmdScreen",ADMIN_KICK,"<nick or #userid> - Advanced screenshot with protection against Anti-SS")
}
public cmdScreen(id,level,cid){
	if(!cmd_access(id,level,cid,2)){
		return PLUGIN_HANDLED
	}
	new arg1[32],target,task[2],timestamp[32],name[32],name2[32],ip[32],str_host[32]
	read_argv(1,arg1,31)
	target = cmd_target(id,arg1,CMDTARGET_NO_BOTS | CMDTARGET_ALLOW_SELF | CMDTARGET_ONLY_ALIVE)
	if(!target) return PLUGIN_HANDLED
	if(task_exists(target+333131) || task_exists(target+333132)){
		client_print(id,print_console,"[ESPORTS] %s is already being screenshoted",name2)
		return PLUGIN_HANDLED
	}
	get_time("%m/%d/%Y - %H:%M:%S",timestamp,31)
	get_user_name(id,name,31)
	get_user_name(target,name2,31)
	get_user_ip(target,ip,31,1)
	//format_for_steam(id,name)
	get_cvar_string("hostname",str_host,31)
	task[0] = target
	task[1] = id
	set_pev(target,pev_takedamage,DAMAGE_NO)
	_screen_hp[target] = pev(target,pev_health)
	set_pev(target, pev_health, 255.0)
	client_print(id,print_console,"[ESPORTS] ESPORTS Screenshot -> Nickname '%s' | IP '%s'",name2,ip)
	color_print(0,"!t[ESPORTS] !nSigned screenshot taken on player !t%s !nby Admin !t%s",name2,name)
	color_print(0,"!tServer: !g%s",str_host)
	color_print(0,"!tName: !g%s !n- !tIP: !g%s",name2,ip)
	color_print(0,"!nA signed screenshot has been executed on you by Admin !t%s",name)
	color_print(0,"!tForum: !gwww.website.ro/forum/")
	color_print(0,"!t[%s]",timestamp)
	client_print(target,print_console,"|____ ESPORTS Screenshot ____|")
	client_print(target,print_console,"Server: %s",str_host)
	client_print(target,print_console,"Name: %s - IP: %s",name2,ip)
	client_print(target,print_console,"A signed screenshot has been executed on you by Admin %s",name)
	client_print(target,print_console,"Post the screenshot on our forums or send it to %s",name)
	client_print(target,print_console,"Forum: http://www.website.ro/forum/");
	client_cmd(target,"stop")
	set_task(0.1,"screen_sign",target+333131,task,2)
	set_task(1.0,"screen_sign_remove",target+333132,task,1)
	log_amx("[ESPORTS_snapshot] Signed screenshot taken on player %s by Admin %s",name2,name)
	return PLUGIN_HANDLED
}
public screen_sign(task[2]){
	new target,admin
	target = task[0]; admin = task[1]
	if(!is_user_connected(target) || !is_user_connected(admin)){
		return PLUGIN_HANDLED
	}
	client_cmd(target,"toggleconsole;snapshot;toggleconsole;wait;wait")
	return PLUGIN_CONTINUE
}
public screen_sign_remove(task[1]){
	new target
	target = task[0]
	if(!is_user_connected(target)){
		return PLUGIN_HANDLED
	}
	set_pev(target,pev_health,float(_screen_hp[target]))
	set_pev(target,pev_takedamage,DAMAGE_AIM)   
	color_print(target, "!team_ End of Screenshot _")
	
	user_kill( target, 1 );
	cs_set_user_team(  target,  CS_TEAM_SPECTATOR  );
	
	return PLUGIN_CONTINUE
}


stock color_print(const id, const input[], any:...) {         //Pentru a face mesajul colorat
    new count = 1, players[32]; 
    static msg[191]; 
    vformat(msg, 190, input, 3); 
     
    replace_all(msg, 190, "!g", "^4"); // Green Color 
    replace_all(msg, 190, "!n", "^1"); // Default Color 
    replace_all(msg, 190, "!t", "^3"); // Team Color 
    replace_all(msg, 190, "!t2", "^0"); // Team2 Color 
     
    if (id) players[0] = id; else get_players(players, count, "ch"); { 
        for (new i = 0; i < count; i++) { 
            if (is_user_connected(players)) { 
                message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players); 
                write_byte(players); 
                write_string(msg); 
                message_end(); 
            } 
        } 
    } 
}  
  


Ignora-l pe al meu nu stiu ce are =]] mergea copilat da acu mno =]]]
phpBB [media]
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests