View Single Post
DeathChaos25
Senior Member
Join Date: Jan 2014
Location: Puerto Rico
Old 09-07-2014 , 19:50   Re: SDK Hooks 2.1 - Updated 2011-9-10
#2702

Quote:
Originally Posted by bl4nk View Post
You're not specifying the handle to the datapack for your WritePackFloat call.


Basically;

Code:
new Handle:pack = CreateDataPack() 
    WritePackCell(pack, GetClientUserId(victim)) 
    WritePackFloat(damage) 
Should've been,

Code:
new Handle:pack = CreateDataPack() 
    WritePackCell(pack, GetClientUserId(victim)) 
    WritePackFloat(pack, damage) 
Right from the start...

Thanks, I'll work on it once I figure out why I broke the compiler as it now refuses to compile ANYTHING at all...
__________________

Last edited by DeathChaos25; 09-07-2014 at 19:50.
DeathChaos25 is offline