Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock GetLocation(Float:x, Float:y)
- {
- new string[MAX_LOCATION_NAME];
- for(new i = 0; i < sizeof(aLocationInfo); i ++)
- {
- if(x >= aLocationInfo[i][location_info_min_x] && x <= aLocationInfo[i][location_info_max_x] && y >= aLocationInfo[i][location_info_min_y] && y <= aLocationInfo[i][location_info_max_y])
- {
- strcpy(string, aLocationInfo[i][location_info_name], MAX_LOCATION_NAME);
- break;
- }
- }
- return string;
- }
Advertisement
Add Comment
Please, Sign In to add comment