Eroare amx_banshot

Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
rEpTiLa0o4
Membru, skill +2
Membru, skill +2
Posts: 819
Joined: 18 Jun 2009, 14:01
Detinator Steam: Da
CS Status: My life's riding on Autobahn !
Detinator server CS: Zombie-Land&Elz
Location: Lugoj
Has thanked: 89 times
Been thanked: 82 times
Contact:

24 Aug 2009, 10:43

Am si eu o problema la amx_banshot..imi da eroare la compilare warning 217: loose indentation
Am citit ca nu am asezat ceva bine,dar nu stiu ce nu am asezat bine
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Ban with proof"
#define VERSION "1.0.4"
#define AUTHOR "[lego]F34R"

static const banurl[] = ""

new Bantype

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_concmd("amx_banshot","banwithproof",ADMIN_BAN,"<Ban username with screenshot 1=IP 2=Steamid 3=Amxbans 4=Not ban")
	register_cvar("amx_banurl",banurl)
	Bantype = register_cvar("amx_banshot_type", "2")	
}


public banwithproof(id,level,cid){
	if(!cmd_access(id,level,cid,2))
		return PLUGIN_HANDLED;

	 new authid[32],ipadd[32],admin[32],name[32],CurrentTime[9],hostname[64],banurl[64]
              new arg[32],arg2[32],temp[2]
	
	read_argv(1,arg,31)
	read_argv(2,arg2,31)
	
	new target = cmd_target(id,arg,1)
	
	if (!target) return PLUGIN_HANDLED
	
   get_user_ip(target,ipadd,31)
	get_cvar_string("hostname",hostname,63) 
	get_user_name(target,name,31)
	get_user_authid(target,authid,31)
	get_cvar_string("amx_banurl", banurl,63)
   get_user_name(id,admin,31)	
      	
      log_to_file("BannedwithSS.txt","    %s | STEAMID: ^n",name)
	
	client_print(target,print_chat, "* Imagine facuta pe serverul: %s de catre Adminul: %s",hostname,admin)
	client_print(target,print_chat, "* Nume: %s cu IP: %s",name,ipadd) 
	
	get_time("%m/%d/%Y - %H:%M:%S",CurrentTime,31)
	
	client_print(target,print_chat, "* Data: %s",CurrentTime)
	client_print(target,print_chat, "* Viziteaza %s Pentru UnBan!",banurl)
	
	console_print(target,"* Imagine facuta pe serverul: %s de catre Adminul: %s",hostname,admin)
	console_print(target,"* Nume: %s cu IP: %s",name,ipadd) 
	console_print(target,"* Data: %s",CurrentTime)
	console_print(target,"* Viziteaza %s Pentru UnBan",banurl)
	
	client_cmd(target,"wait;wait;snapshot;wait;snapshot")
	
	temp[0] = target
	temp[1] = str_to_num(arg2)
	
	set_task(0.5,"persontoban", target, temp, 2)
	
	return PLUGIN_HANDLED
}

public persontoban(arg[]){
	new name2[32]
	
	new target = arg[0]
	new bantime = arg[1]
	
	get_user_name(target,name2,31)
	
	switch (get_pcvar_num(Bantype)){
		case 1:{
			server_cmd("amx_ban %s %d",name2,bantime)
		}
		case 2:{
			server_cmd("amx_banip %s %d",name2,bantime)
		}
		case 3:{
			server_cmd("amx_ban %d %s",bantime,name2)
		}
		case 4:{
			server_cmd("amx_say Visit %s",banurl)
		}
	}
	
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Last edited by Ciprian on 24 Aug 2009, 17:47, edited 1 time in total.
Reason: Pentru texte lungi foloseste [sursa=nume]text[/sursa] in loc de [code]text[/code]
Image
RoyalServer
User avatar
VaLDeS
Fost moderator
Fost moderator
Posts: 2776
Joined: 11 Feb 2008, 18:41
Detinator Steam: Da
CS Status: pe mari si oceane
SteamID: valdes93
Reputatie: Fost moderator
Fost Membru Club eXtreamCS (doua luni)
Location: România
Has thanked: 64 times
Been thanked: 103 times

24 Aug 2009, 10:50

eroarea ti-o da in liinile : 24 25 34 35 39 41 43

Eroare din liniile 24 + 25

Code: Select all

new authid[32],ipadd[32],admin[32],name[32],CurrentTime[9],hostname[64],banurl[64]
       new arg[32],arg2[32],temp[2]
34 - 35

Code: Select all

get_user_ip(target,ipadd,31)
   get_cvar_string("hostname",hostname,63) 
39 + 41

Code: Select all

get_user_name(id,admin,31)   
         
      log_to_file("BannedwithSS.txt","    %s | STEAMID: ^n",name)
43

Code: Select all

client_print(target,print_chat, "* Imagine facuta pe serverul: %s de catre Adminul: %s",hostname,admin)
mai pe scurt cred ca ai modificat tu ceva si nu merge ! lasa versiunea originala !

Pluginul merge si asa , dar nu va fi citit ca are erori in salvari si poze !
Image

STEAM ID : valdes93 :flag_ro:
rEpTiLa0o4
Membru, skill +2
Membru, skill +2
Posts: 819
Joined: 18 Jun 2009, 14:01
Detinator Steam: Da
CS Status: My life's riding on Autobahn !
Detinator server CS: Zombie-Land&Elz
Location: Lugoj
Has thanked: 89 times
Been thanked: 82 times
Contact:

24 Aug 2009, 10:59

Eu vreau amx_banshot la fel ca pe cs2.extreamcs.com , la search n-am gasit
Image
Post Reply

Return to “Probleme la servere dedicate de Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 155 guests