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();
}
__________________