View Single Post
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 11-17-2016 , 02:17   Re: how to set data to client..
Reply With Quote #2

Don't blank your posts. If you have solved your problem it would be nice to know how you solved it so if someone has the same problem he can find a solution. -> https://forums.alliedmods.net/misc.php?do=showrules

Quote:
Originally Posted by JerryJerryAdios
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();

__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de

Last edited by Sillium; 11-17-2016 at 02:17.
Sillium is offline