Quote:
Originally Posted by cordellpwnz
*** Streamer Plugin: Obsolete or invalid native "Streamer_CallbackHook" found (script needs to be recompiled with the latest include file)
|
That's what you have to do. Open your script and compile them with the F5 button in pawno.
Quote:
Originally Posted by BaubaS
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid) { if (pickupid == skinShop) { if (GetPlayerMoney(playerid) < SKIN_COST) return SendClientMessage(playerid, COLOR_WHITE, "[ {ff0000}klaida {ffffff}]: Jыs neturite {ff0000}$"#SKIN_COST"");
printf("A"); ShowModelSelectionMenu(playerid, (pInfo[playerid][statsGender] == 1) ? (maleSkins) : (femaleSkins), "KAINA - $"#SKIN_COST""); printf("B"); }
return (true); }
pawn Код:
skinShop = CreateDynamicPickup(1275, 1, 214.5725, -40.2552, 1002.0234, 4, 1);
I can see the pickup, but when I pick it up, nothing happens [I thought its ShowModelSelectionMenu, but it isnt. I dont even see A print message.
|
Check if OnPlayerPickUpDynamicPickup is actually called, and whether "if (GetPlayerMoney(playerid) < SKIN_COST)" calls.
Quote:
Originally Posted by Shadow_
I have this terrible bug where the objects seem to stream in at around a distance of 40.0/50.0, I am using this code since we moved to 0.3x
Код:
for (new o, s = Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); o != s; o++)
{
if (IsValidDynamicObject(o))
{
new Float: distance;
Streamer_GetFloatData(STREAMER_TYPE_OBJECT, o, E_STREAMER_STREAM_DISTANCE, distance);
Streamer_SetFloatData(STREAMER_TYPE_OBJECT, o, E_STREAMER_DRAW_DISTANCE, distance+450);
}
}
But oddly, it doesn't seem to work. If i restart the server the streaming seems fine for a few minutes then it goes back to streaming around 40.0/50.0. Its really annoying and my players are getting annoyed.
Any advice/help?
|
At least you shouldn't change the draw distance, but the stream distance in Streamer_SetFloatData. You should check whether your code of CreateDynamicObject have set the draw and stream distance correctly.