It is currently 23 Feb 2019 23:26



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 7 posts ] 
 plugin 
Author Message
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
Plugin Cerut: vip
Descriere (adica ce face el mai exact): Nu stiu daca e bine unde postez dar daca nu e bine rog un moderator sa mute in categoria unde trebuie
Am un plugin cs vip si am o problema imi apare in chat asa
Serverul ruleaza (HLDS/ReHLDS): rehlds
Versiune AMX Mod X: -
Modul Serverului: respawn



Nu stiu daca e bine unde postez dar daca nu e bine rog un moderator sa mute in categoria unde trebuie

Am un plugin cs vip si am o problema imi apare in chat asa

| Afiseaza codul
[RESPAWN] Ai primit xjoou{?%2224;$DMVaqq HP &
xxjoou{?[/code]

O sa va postez sma
[code]#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>
#include <fakemeta>

new cvar_hp, cvar_ap, cvar_speed

new const TAG[] = "*"
new p_LastSpeed[33]

public plugin_init()
{
register_plugin("VIP Respawn", "1.0", "dK^aLeX")

cvar_ap = register_cvar("amx_spawn_ap", "200")
cvar_hp = register_cvar("amx_spawn_hp", "120")
cvar_speed = register_cvar("amx_knife_speed", "300")

RegisterHam(Ham_Spawn, "player", "fw_hpap", 1)

register_forward(FM_PlayerPreThink, "fw_speed")

}

public client_connect(id)
{
new Flags = get_user_flags(id)
new Read = read_flags("t")

if(Flags & Read)
{
new szName[32]
get_user_name(id, szName, charsmax(szName))

client_print(0, print_chat, "%s VIP-ul %s se conecteaza pe server!", TAG, szName)
}
}

public fw_hpap(iPlayer)
{
new Flags = get_user_flags(iPlayer)
new Read = read_flags("t")

if(Flags & Read)
{
set_user_armor(iPlayer, get_pcvar_num(cvar_ap))

set_user_health(iPlayer, get_pcvar_num(cvar_hp))

client_print(iPlayer, print_chat, "%s Ai primit %s HP & %s AP.", TAG, get_pcvar_num(cvar_hp), get_pcvar_num(cvar_ap))
}
}

public fw_speed(id)
{
new Flags = get_user_flags(id)
new Read = read_flags("t")

if(Flags & Read)
{
new szTemp, szWeapon = get_user_weapon(id, szTemp, szTemp)
if(szWeapon == CSW_KNIFE)
{
pev(id, pev_maxspeed, p_LastSpeed[id])
set_pev(id, pev_maxspeed, get_pcvar_float(cvar_speed))
}
else
{
return PLUGIN_HANDLED;
}
}

return PLUGIN_CONTINUE;
}

Doresc sa nu mai apara acel mesaj in chat de loc

_________________
Image


Last edited by Rainq on 26 Jan 2019 16:18, edited 1 time in total.

Editat dupa model



26 Jan 2019 11:49
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 05 Jan 2016 18:17
Posts: 1921
Detinator Steam: Nu
Detinator server CS: Da
Reputatie: Membru Club eXtreamCS (2 luni)
Scripter eXtreamCS
Fond eXtream: 0
client_print(iPlayer, print_chat, "%s Ai primit %s HP & %s AP.", TAG, get_pcvar_num(cvar_hp), get_pcvar_num(cvar_ap))


->

client_print(iPlayer, print_chat, "%s Ai primit %d HP & %d AP.", TAG, get_pcvar_num(cvar_hp), get_pcvar_num(cvar_ap))


26 Jan 2019 12:15
Profile multumesc YIM WWW
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
eu vreau sa nu mai apara acel mesaj

_________________
Image


26 Jan 2019 12:31
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 05 Jan 2016 18:17
Posts: 1921
Detinator Steam: Nu
Detinator server CS: Da
Reputatie: Membru Club eXtreamCS (2 luni)
Scripter eXtreamCS
Fond eXtream: 0
il stergi daca nu vrei sa mai apara..


26 Jan 2019 12:41
Profile multumesc YIM WWW
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
Neata baiati imi da aceasta eroare la plugin dc?
Code:
L 01/27/2019 - 08:28:22: [AMXX] Run time error 10 (plugin "vipcs.amxx") (native "set_user_armor") - debug not enabled!
L 01/27/2019 - 08:28:22: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).


Specific nu merge cu debug in fata pluginului
Am facut cu debug si mi-a aparut asta
Code:
[AMXX] Displaying debug trace (plugin "vipcs.amxx")
L 01/27/2019 - 08:36:02: [AMXX] Run time error 10: native error (native "set_user_armor")
L 01/27/2019 - 08:36:02: [AMXX]    [0] vipcs.sma::fw_hpap (line 47)


Se poate remedia?

_________________
Image


27 Jan 2019 08:32
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 24 Aug 2011 11:24
Posts: 1964
Location: |<()|)
Detinator Steam: Da
CS Status: HLDS Builder
Detinator server CS: liber de contract
SteamID: riseofevo
Reputatie: Scripter eXtreamCS
Nume anterior: Adryyy
Fond eXtream: 0
| Afiseaza codul
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>
#include <fakemeta>

#pragma tabsize 0

new cvar_hp, cvar_ap, cvar_speed

new const TAG[] = "*"
new p_LastSpeed[33]

public plugin_init()
{
    register_plugin("VIP Respawn", "1.0", "dK^aLeX")
   
    cvar_ap = register_cvar("amx_spawn_ap", "200")
    cvar_hp = register_cvar("amx_spawn_hp", "120")
    cvar_speed = register_cvar("amx_knife_speed", "300")
   
    RegisterHam(Ham_Spawn, "player", "fw_hpap", 1)
   
    register_forward(FM_PlayerPreThink, "fw_speed")
}

public client_connect(id)
{
    new Flags = get_user_flags(id)
    new Read = read_flags("t")
   
    if(Flags & Read)
    {
        new szName[32]
        get_user_name(id, szName, charsmax(szName))
       
        client_print(0, print_chat, "%s VIP-ul %s se conecteaza pe server!", TAG, szName)
    }
}

public fw_hpap(iPlayer)
{
   if(is_user_alive(iPlayer))
   {
    new Flags = get_user_flags(iPlayer)
    new Read = read_flags("t")
   
    if(Flags & Read)
    {       
        set_user_armor(iPlayer, get_pcvar_num(cvar_ap))
       
        set_user_health(iPlayer, get_pcvar_num(cvar_hp))
    }
   }
}

public fw_speed(id)
{
   if(is_user_alive(id))
   {
    new Flags = get_user_flags(id)
    new Read = read_flags("t")
   
    if(Flags & Read)
    {
        new szTemp, szWeapon = get_user_weapon(id, szTemp, szTemp)
        if(szWeapon == CSW_KNIFE)
        {
            pev(id, pev_maxspeed, p_LastSpeed[id])
            set_pev(id, pev_maxspeed,  get_pcvar_float(cvar_speed))
        }
        else
        {
            return PLUGIN_HANDLED;
        }
    }
   }
   
    return PLUGIN_CONTINUE;
}


27 Jan 2019 15:43
Profile multumesc ICQ YIM
Membru, skill +1
Membru, skill +1

Joined: 02 Jan 2017 03:01
Posts: 219
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: DA
SteamID: NU
Fond eXtream: 0
mai trebui sa adaug la plugin debug? in fata?

_________________
Image


27 Jan 2019 16:02
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: eSeTY., glmmlg and 53 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group