Raised This Month: $23 Target: $400
 5% 

Print center problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SaraAki
Senior Member
Join Date: Nov 2022
Old 06-10-2024 , 06:21   Print center problem
Reply With Quote #1

I use this plugin for hp indicator.But i didnt get correct message(print center message)-look photo.The message I see is always this: %S
Anybody know where is the problem?

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN    "Hp indikator"
#define AUTHOR    "OzzBorn"
#define VERSION    "1.0"


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_event("Damage","event_damage""b""2!0""3=0""4!0")
}

public 
event_damage(id)
{
    new 
iAttac get_user_attacker(id)
    
    if(
iAttac == id || !is_user_alive(iAttac) || !is_user_alive(id))
        return
    
    
client_print(iAttacprint_center,"HP: %i"get_user_health(id))
    

Attached Files
File Type: zip fy_snow00001.zip (322.4 KB, 17 views)

Last edited by SaraAki; 06-10-2024 at 06:27.
SaraAki is offline
Tote
Senior Member
Join Date: Jul 2023
Old 06-10-2024 , 11:12   Re: Print center problem
Reply With Quote #2

I've already answered it here:

https://forums.alliedmods.net/showthread.php?t=347140

Quote:
Hi, the reason it's showing "%s" is because you are probably playing on non-steam (non-legit) version. It will work fine if you buy legit steam cs 1.6 or maybe try another non-steam version. You can use module "printchatfix" maybe it can help you fixing this.
Tote is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 06-13-2024 , 07:39   Re: Print center problem
Reply With Quote #3

https://dev-cs.ru/resources/1289/
lexzor is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 06-14-2024 , 10:01   Re: Print center problem
Reply With Quote #4

Quote:
@Destro

Code:
stock center_print(id, const input[], any:...) {     new buff[128]     if(numargs() == 2)         copy(buff, charsmax(buff), input)     else    vformat(buff, charsmax(buff), input, 3)     if(id)     {         if(is_user_connected(id))             engfunc(EngFunc_ClientPrintf, id, 1, buff)         return     }         new count = 1, players[32], i     get_players(players, count, "ch")     for(i = 0; i < count; i++)         engfunc(EngFunc_ClientPrintf, players[i], 1, buff) }
__________________
mlibre is offline
SaraAki
Senior Member
Join Date: Nov 2022
Old 06-25-2024 , 11:39   Re: Print center problem
Reply With Quote #5

mlibre,How to use this stock?
SaraAki is offline
GoodbayKOD
Junior Member
Join Date: Oct 2021
Old 06-27-2024 , 20:39   Re: Print center problem
Reply With Quote #6

https://forums.alliedmods.net/showthread.php?t=348390
__________________
GoodbayKOD is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode