08.11.2014, 17:19
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.
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..
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; }
and I think the 4 th house doesnt create. the seccond and 3rd works though haha..