SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 21/01/2017, 07:04 AM   #1
czop1223
Little Clucker
 
Join Date: Jul 2012
Posts: 48
Reputation: 0
Default Slight problems using Streamer_GetIntData

Hello, i ran into a small problem trying to use Streamer_GetIntData.

I'm creating an object:

PHP Code:
obj CreateDynamicObject(weaponModels[weapon], PosXPosYPosZ 1.080.00.0, -PosAvw, -1, -180.0); 
And it's visible. Then I am using SetIntData


PHP Code:
Streamer_SetIntData(STREAMER_TYPE_OBJECTobjE_STREAMER_EXTRA_IDweaponUid); 
And at the end, I test if it's set properly.
Yes it is. It shows me:

PHP Code:
printf("Test getIntData: %d"Streamer_GetIntData(STREAMER_TYPE_OBJECTobject_idE_STREAMER_EXTRA_ID)); 

Petla GetIntData: (the Uid)


Later on in the weapon picking up function I wanna check if the picked up weapon is the one that has the object lying on the ground so I do

PHP Code:
for (new object_id 0;  object_id <= MAX_OBJECTSobject_id++)
    {
        
printf("Loop getIntData: %d"Streamer_GetIntData(STREAMER_TYPE_OBJECTobject_idE_STREAMER_EXTRA_ID));
    } 

I have like 200 of lines spammed in my console and all of them are: loop getIntData = 0

What did I do wrong?
czop1223 is offline   Reply With Quote
Old 21/01/2017, 08:10 AM   #2
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,703
Reputation: 1176
Default Re: Slight problems using Streamer_GetIntData

You have to loop till Streamer_GetUpperBoundType().
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Streamer_GetIntData: invalid id... SetPlayerNameTag Scripting Help 4 11/06/2016 02:03 PM
My server, is having slight PROBLEMS. Scripter needed... cray1100 General 2 19/06/2013 10:51 AM
Slight Problem [p3]pr0t0typ3 Scripting Help 2 27/09/2012 01:11 AM
0.3 slight problem.. _Vortex Help Archive 5 20/09/2009 08:02 PM
Slight problems accessing the servers - Wiki didn't work Rtm Client Support 1 15/05/2009 01:10 PM


All times are GMT. The time now is 09:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.