Qustion about pwn

TheAnonymous

Member
Joined
May 29, 2017
Messages
6
Reaction score
0
Code:
		if(listitem == 3)
		{
		    new money, sold, data[e_furniture], query[64];
		    for(new i; i < Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); ++i)
		    {
		        if(!IsValidDynamicObject(i)) continue;
				Streamer_GetArrayData(STREAMER_TYPE_OBJECT, i, E_STREAMER_EXTRA_ID, data);
				if(data[SQLID] > 0 && data[HouseID] == id)
				{
				    sold++;
				    money += HouseFurnitures[ data[ArrayID] ][Price];
					DestroyDynamicObject(i);
				}
		    }

It's code for deleting all "furnitures" from house. And i have a questions.

It deletes all streamed objects and gives me money?
If I somehow leave the house can i sell all streamed objects on server?
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
1.- yes
2.- idk, not enough code to answer that
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
1: Not really, It doesn't "give" you money instead there is a variable called money which is storing the total money of all furniture's removed, so the variable money holds the money you should be paid but there is no code for giving u money, its only storing the money and making it total of all furniture's removed total worth, Lack of code, we need more code.

2: Same as WaTTi we don't have enough code but in my opinion it looks like its only including/calculating the furniture's belonging to the house because its checking the object owner house ID, Evidence code: "if(data[SQLID] > 0 && data[HouseID] == id)" and even if u bypass or that doesn't happen somehow, you wont be able to sell all streamed objects as some will not have price.
 
Top