User
Pass
2FA
 
 

Player_name edit

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources
Author Message1308
rilley

[Mentally Stable]



Status: Offline
(since 04-10-2008 18:28)
Joined: 07 Oct 2007
Posts: 52, Topics: 11
Location: Root@localhost

Reputation: 91.3
Votes: 4

Post Posted: 17-10-2007, 21:18:44 | Translate post to: ... (Click for more languages)

Apare uneori la unele harti eroarea asta
Quote:

L 10/17/2007 - 20:23:01: Start of error session.
L 10/17/2007 - 20:23:01: Info (map "cs_deagle5") (logfile "error_101707.log")
L 10/17/2007 - 20:23:01: Invalid weapon id 0
L 10/17/2007 - 20:23:01: [AMXX] Run time error 10 (plugin "player_name.amxx") (native "get_weaponname") - debug not enabled!
L 10/17/2007 - 20:23:01: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).


Nu am bagat debug ca daca bag zice ca nu cere.. deci doar la unele harti dupa vreo 4 ore de functionare..

SMA

Code:
#include <amxmod>

new friend[33]

public set_team(id)
   friend[id] = read_data(2)
   
public hide_status(id){
   set_hudmessage(0,0,0,0.0,0.0,0, 0.0, 0.01, 0.0, 0.0, 4)
   show_hudmessage(id,"")
}

public show_status(id){
   new name[32],pid = read_data(2)
   get_user_name(pid,name,31)
   if (friend[id] == 1){ /* friend */
      new clip, ammo, wpnid = get_user_weapon(pid,clip,ammo)
      new wpnname[32]
      get_weaponname(wpnid,wpnname,31)
      set_hudmessage(0,50,255,0.05,0.70,1, 0.01, 3.0, 0.01, 0.01, 4) /* blue */
      show_hudmessage(id,"%s -- %d HP / %d AP / %s",name,
         get_user_health(pid),get_user_armor(pid),wpnname[7]) /* wpnname[7] - trunk weapon_ */
   }
   else {
      set_hudmessage(255,50,0,0.05,0.70,1, 0.01, 3.0, 0.01, 0.01, 4) /* red */
      show_hudmessage(id,name)
   }
}
   
public plugin_init(){
   register_plugin("Player Name","0.9.2","default")
   register_event("StatusValue","set_team","be","1=1")
   register_event("StatusValue","show_status","be","1=2","2!0")
   register_event("StatusValue","hide_status","be","1=1","2=0")
   return PLUGIN_CONTINUE
}



editatil sa nu mai dea eroare in log..


Ajuta si vei fi ajutat -
0 0
  
Back to top
View user's profile Send private message
Poseidon
[Banned user]


Banned


Status: Offline
(since 05-02-2008 16:11)
Joined: 30 May 2007
Posts: 41, Topics: 2
Location: Romania

Reputation: 95.4
Votes: 4

Post Posted: 27-11-2007, 23:23:51 | Translate post to: ... (Click for more languages)

Salut,m-am uitat prin codul pluginului,si totul pare sa fie in regula,nu trebuie editat nimic. Rezolvarea insa este sa activezi modulele pe server,si anume: Mergi in: /cstrike/addons/amxmodx/configs/modules.ini,stergi tot ce contine, si inlocuiesti cu asta:

Code:

;;;
; To enable a module, remove the semi-colon (;) in front of its name.
; If it's not here, simply add it its name, one per line.
; You don't need to write the _amxx part or the file extension.
;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SQL Modules usually need to be enabled manually ;;
;; You can have any number on at a time.  Use      ;;
;;  amx_sql_type in sql.cfg to specify the default ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

mysql
sqlite

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Put third party modules below here.              ;;
;; You can just list their names, without the _amxx ;;
;;  or file extension.                              ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These modules will be auto-detected and loaded   ;;
;;  as needed.  You do not need to enable them here ;;
;;  unless you have problems.                       ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

fun
engine
fakemeta
geoip
sockets
regex
nvault
cstrike
csx


Dai save,restart la server,si v-a trebui sa scapi de eroare. Pluginul nu trebuie sa contina ; in fata in : plugins.ini . Ai grija unde il pui. Pluginul bineinteles trebuie sa fie prezent in: /cstrike/addons/amxmodx/plugins/

Incearca insa sa adaugi dupa:

Code:
# <amxmodx>


Dupa,adauga:

Code:
#include <amxmisc>
#include <cstrike>
#include <fun>


Deasemenea,inlocuieste:

Code:
 get_weaponname(wpnid,wpnname,31)


Corect ar fi:

Code:
get_weaponname(wpnindex,wpn,31);


Dupa asta,adauga;

Code:
wpn result = "weapon_weaponname"

replace(wpn, 31, "weapon_", "")
result wpn = "weaponname"


Trebuie sa mearga.

Succes - ~

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore




 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources  


The time now is 03-05-2024, 03:37:17
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x