Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock GetPlayerHouseid(playerid, &house1, &house2)
- {
- new bool:housefound;
- house1 = -1;
- house2 = -1;
- for(new i=0;i<MAX_HOUSES;i++)
- {
- if(strmatch(Playername(playerid),HouseInfo[i][Owner]))
- {
- if(!housefound) { house1 = i; housefound = true; }
- else { house2 = i; return; }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement