25.01.2013, 08:48
the reason is the SendClientMessage being outside of the loop. i assume there is only 1 house for a player, so if you break/return from the nested loop (good idea btw), it wont call the SCM. try this, slightly changed:
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { for(new i; i < MAX_HOUSES; i++) { if(pickupid == housepickup[i]) { new str[120]; format(str, sizeof(str),"You are standing on %s house",houseinfo[i][owner]); printf("%s",houseinfo[i][owner]); SendClientMessage(playerid,COLOR_GREEN,str); return 1; } } return 1; }