View Single Post
Author Message
JerryJerryAdios
Member
Join Date: Jun 2015
Location: the universe
Old 11-16-2016 , 22:43   how to set data to client..
Reply With Quote #1

i thought the code below should have worked... but it actually crashes the game.... is there anything wrong? Thank you!
PHP Code:
clientdata_t *pPlayer NULL;
pPlayer->health 20
PHP Code:
void testfx(void)
{
    
clientdata_t *pPlayer NULL;
    
pPlayer->health 20;
}

void HUD_Init(void)
{
    
gEngfuncs.pfnAddCommand("noooo"testfx);
    return 
gExportfuncs.HUD_Init();

__________________
This is a Super Awesome Asking Guy! Don't mind alright? Just be cool!

Last edited by DarkDeviL; 11-18-2016 at 01:28. Reason: Restored post
JerryJerryAdios is offline
Send a message via Skype™ to JerryJerryAdios