Depends where you're going. If you are staying at a resort and are going to the disco in the hotel, it doesn't really matter.
If you're going to a local club or bar in town, some do prefer long pants.
If you are just going to be walking down the street in the evening, you'll look less like a tourist if you wear long pants.