Raised This Month: $ Target: $400
 0% 

Need help with (get/set)_pdata_string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KORD_12.7
Senior Member
Join Date: Aug 2009
Location: Russia, Vladivostok
Old 08-06-2011 , 01:22   Need help with (get/set)_pdata_string
Reply With Quote #1

I want to get/set value from
PHP Code:
char m_szTeamName[TEAM_NAME_LENGTH]; // offset is 383 
I'm tried to use (get/set)_pdata_string, but it's not work =(

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

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "KORD_12.7"

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say get""get")
    
register_clcmd("say set""set")
}

public 
get(id)
{
    new 
m_szTeamName[16]
    
get_pdata_string(id383m_szTeamNamecharsmax(m_szTeamName), .linux 5)
    
    
client_print(idprint_chat"m_szTeamName is ^"%s^""m_szTeamName)
}

public 
set(id)
{
    
set_pdata_string(id383"zombie", .linux 5)

Any idea?

PS
Running hldm steam server
__________________

Vi Veri Veniversum Vivus Vici
Russian Half-Life and Adrenaline Gamer community
KORD_12.7 is offline
Send a message via ICQ to KORD_12.7
 



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 03:28.


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