-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Streamer_GetArrayData problem #4
Comments
You shouldn't create anything in
Results:
Of course, the data is not in the right order, but this will be fixed in v2.7.2. |
I found the bug: If data[0] and data[1] are same, for exemple 1. One of datas will return as 0. |
Ah, I see what you mean. That could also cause a problem. Well, this is also fixed in v2.7.2, because |
I have this code:
main()
{
new pickup = CreateDynamicPickup( PropertyVisual[ type ][ 0 ], 23, x, y, z );
new data[ 2 ];
data[ 0 ] = e_Pickup_Property;
data[ 1 ] = propid;
}
Result of prints:
propid: 1 data[0]: 1 pickup 1
propid: 1 data[1]: 1 pickup 1
All datas are 1.
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
new id, data[ 2 ];
Streamer_GetArrayData( STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_EXTRA_ID, data );
}
Result:
data[0]: 1 pickup 1
data[1]: 0 pickup 1
Data[1] is now 0 but should be 1 as in main.
The text was updated successfully, but these errors were encountered: