|
I tried to debug everything, but nothing showed up. The OnPlayerPickupDynamicPickUp callback didn't get called AT ALL.
And then, I tried to replace some of my old steamer settings by downloading 2.7.3 version again, I configured some shit on my code too, and suddenly... BOOM! Everything worked. I still can't find where the problem was, but happy now for fixing it somehow... |
GetPlayerDynamicArea(playerid);
native GetPlayerDynamicAreas(playerid, areas[], maxareas = sizeof areas);
stock GetPlayerDynamicArea(playerid)
{
new areas[1];
GetPlayerDynamicAreas(playerid, areas, 1);
return areas[0];
}
CMD:myareas(playerid, params[], 4, 0)
{
new
areas[128],
count = GetPlayerNumberDynamicAreas(playerid);
GetPlayerDynamicAreas(playerid, areas, sizeof(areas));
for(new i; i != count; i++)
{
SendClientMessagef(playerid, COLOR_ORANGE, "Area %d - %d", i, areas[i]);
}
SendClientMessagef(playerid, COLOR_WHITE, "All area: %d", count);
return 1;
}
root@host:/home/plugins/SAMP/Streamer/v274# make
==== Building streamer (release) ====
callbacks.cpp
In file included from include/boost/tti/has_template.hpp:215:0,
from include/boost/tti/tti.hpp:16,
from include/boost/intrusive/detail/utilities.hpp:34,
from include/boost/intrusive/slist_hook.hpp:19,
from include/boost/intrusive/slist.hpp:21,
from include/boost/container/detail/multiallocation_chain.hpp:21,
from include/boost/container/detail/allocator_version_traits.hpp:23,
from include/boost/container/vector.hpp:42,
from include/boost/geometry/index/detail/rtree/node/node.hpp:14,
from include/boost/geometry/index/rtree.hpp:57,
from include/boost/geometry/algorithms/detail/distance/geometry_to_geometry_rtree.hpp:35,
from include/boost/geometry/algorithms/detail/distance/single_to_multi.hpp:52,
from include/boost/geometry/algorithms/detail/distance/implementation.hpp:29,
from include/boost/geometry/algorithms/detail/comparable_distance/implementation.hpp:22,
from include/boost/geometry/algorithms/comparable_distance.hpp:23,
from include/boost/geometry/geometry.hpp:51,
from include/boost/geometry.hpp:17,
from src/common.h:60,
from src/data.h:20,
from src/core.h:20,
from src/callbacks.cpp:17:
include/boost/tti/detail/dtemplate.hpp:15:47: fatal error: boost/preprocessor/debug/assert.hpp: No such file or directory
#include <boost/preprocessor/debug/assert.hpp>
^
compilation terminated.
make[1]: *** [obj/linux/Release/callbacks.o] Error 1
make: *** [streamer] Error 2
|
Trying to compile the plugin, because the one I downloaded is being a bitch on my OS.
Код:
root@host:/home/plugins/SAMP/Streamer/v274# make
==== Building streamer (release) ====
callbacks.cpp
In file included from include/boost/tti/has_template.hpp:215:0,
from include/boost/tti/tti.hpp:16,
from include/boost/intrusive/detail/utilities.hpp:34,
from include/boost/intrusive/slist_hook.hpp:19,
from include/boost/intrusive/slist.hpp:21,
from include/boost/container/detail/multiallocation_chain.hpp:21,
from include/boost/container/detail/allocator_version_traits.hpp:23,
from include/boost/container/vector.hpp:42,
from include/boost/geometry/index/detail/rtree/node/node.hpp:14,
from include/boost/geometry/index/rtree.hpp:57,
from include/boost/geometry/algorithms/detail/distance/geometry_to_geometry_rtree.hpp:35,
from include/boost/geometry/algorithms/detail/distance/single_to_multi.hpp:52,
from include/boost/geometry/algorithms/detail/distance/implementation.hpp:29,
from include/boost/geometry/algorithms/detail/comparable_distance/implementation.hpp:22,
from include/boost/geometry/algorithms/comparable_distance.hpp:23,
from include/boost/geometry/geometry.hpp:51,
from include/boost/geometry.hpp:17,
from src/common.h:60,
from src/data.h:20,
from src/core.h:20,
from src/callbacks.cpp:17:
include/boost/tti/detail/dtemplate.hpp:15:47: fatal error: boost/preprocessor/debug/assert.hpp: No such file or directory
#include <boost/preprocessor/debug/assert.hpp>
^
compilation terminated.
make[1]: *** [obj/linux/Release/callbacks.o] Error 1
make: *** [streamer] Error 2
|
Streamer_SetIntData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_ATTACHED_PLAYER, playerid);
|
Use data-manipulation: pawn Код:
|
there is no AttachPlayerObjectToPlayer...?