View Single Post
kossolax
AlliedModders Donor
Join Date: Jan 2008
Location: Belgium
Old 05-03-2016 , 06:14   Re: New API and Syntax
Reply With Quote #730

I could not pass DataPack using native. I've tried to pass Handle instead, but the issue was similar.

With DataPack
PHP Code:
DataPack dp view_as<DataPack>(GetNativeCell(1));
dp.Position 0;
Native "SetPackPosition" reportedInvalid data pack handle 60f7069e (error 5
With Handle
PHP Code:
Handle dp view_as<Handle>(GetNativeCell(1));
ResetPack(dp);
Native "ResetPack" reportedInvalid data pack handle 108d00c8 (error 5

Is it a normal behavior?
kossolax is offline