View Single Post
Nerus
Senior Member
Join Date: Aug 2010
Location: Poland
Old 12-26-2015 , 11:10   Re: Dynamic Objects and Properties
Reply With Quote #19

Nice to see similar objectives like in C# and Java in SM I head problems with methodsmaps, now I think that u solve my problem, THX !

I always create same question in any topic of plugins, but this is my first time in lib thread: will you add dynamic to github please ?

P.S. One more thing:

Quote:
someobject.GetInt("m_iSomeField");
Please add second 'default' parameter if value not found.

I had some errors i try to create dynamic player like:
Quote:
Dynamic player = Dynamic();
Next I added some values like:
Quote:
player.SetString("steam_id3", steam_id3, sizeof(steam_id3));
get working correct after set.

Next I added dynamic player to array based on client id:
Quote:
Players[client] = player;
Last code check player is INVALID_HANDLE and result: is invalid.
Quote:
if(player == INVALID_HANDLE)
What is wrong ?


Regards,
Nerus

Last edited by Nerus; 12-26-2015 at 13:48.
Nerus is offline