ID To Pickup.
#1

Tryng to make that it would take the ID from Db and place it as id, and then loop it with for loop.

Prob is that first pickup stands as all my max_houses = 2000.
SO I made this to check if things are correct.

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	new string[128];
	for(new haI = 0; haI < MAX_HOUSES; haI++)
	{
   		if(pickupid == HousePickup[haI])
    	{
    	    format(string, sizeof(string), "This is test and house id is: %d", haI);
			SendClientMessage(playerid, COLOR_GREEN, string);
    	}
	}
	return 1;
}
But first house spams you everything I mean, ID:1, ID:2 ....... ID: 1999. Spams to the chat from 1 to 1999 (max num of houses).

and I think the 4 th house doesnt create. the seccond and 3rd works though haha..
Reply


Messages In This Thread
ID To Pickup. - by TheINCDope - 08.11.2014, 17:19
Re: ID To Pickup. - by Wingman - 08.11.2014, 17:39
Re: ID To Pickup. - by TheINCDope - 08.11.2014, 18:09
Re: ID To Pickup. - by TheINCDope - 08.11.2014, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)